Package org.ldk.enums

Enum Secp256k1Error

    • Enum Constant Detail

      • LDKSecp256k1Error_IncorrectSignature

        public static final Secp256k1Error LDKSecp256k1Error_IncorrectSignature
        Signature failed verification
      • LDKSecp256k1Error_InvalidMessage

        public static final Secp256k1Error LDKSecp256k1Error_InvalidMessage
        Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
      • LDKSecp256k1Error_InvalidPublicKey

        public static final Secp256k1Error LDKSecp256k1Error_InvalidPublicKey
        Bad public key
      • LDKSecp256k1Error_InvalidSignature

        public static final Secp256k1Error LDKSecp256k1Error_InvalidSignature
        Bad signature
      • LDKSecp256k1Error_InvalidSecretKey

        public static final Secp256k1Error LDKSecp256k1Error_InvalidSecretKey
        Bad secret key
      • LDKSecp256k1Error_InvalidSharedSecret

        public static final Secp256k1Error LDKSecp256k1Error_InvalidSharedSecret
        Bad shared secret.
      • LDKSecp256k1Error_InvalidRecoveryId

        public static final Secp256k1Error LDKSecp256k1Error_InvalidRecoveryId
        Bad recovery id
      • LDKSecp256k1Error_InvalidTweak

        public static final Secp256k1Error LDKSecp256k1Error_InvalidTweak
        Invalid tweak for add_assign or mul_assign
      • LDKSecp256k1Error_NotEnoughMemory

        public static final Secp256k1Error LDKSecp256k1Error_NotEnoughMemory
        Didn't pass enough memory to context creation with preallocated memory
      • LDKSecp256k1Error_InvalidPublicKeySum

        public static final Secp256k1Error LDKSecp256k1Error_InvalidPublicKeySum
        Bad set of public keys.
      • LDKSecp256k1Error_InvalidParityValue

        public static final Secp256k1Error LDKSecp256k1Error_InvalidParityValue
        The only valid parity values are 0 or 1.
    • Method Detail

      • values

        public static Secp256k1Error[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Secp256k1Error c : Secp256k1Error.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Secp256k1Error valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null