Package org.ldk.enums
Enum Secp256k1Error
- java.lang.Object
-
- java.lang.Enum<Secp256k1Error>
-
- org.ldk.enums.Secp256k1Error
-
- All Implemented Interfaces:
Serializable,Comparable<Secp256k1Error>
public enum Secp256k1Error extends Enum<Secp256k1Error>
Represents an error returned from libsecp256k1 during validation of some secp256k1 data
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKSecp256k1Error_IncorrectSignatureSignature failed verificationLDKSecp256k1Error_InvalidMessageBadly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)LDKSecp256k1Error_InvalidPublicKeyBad public keyLDKSecp256k1Error_InvalidRecoveryIdBad recovery idLDKSecp256k1Error_InvalidSecretKeyBad secret keyLDKSecp256k1Error_InvalidSignatureBad signatureLDKSecp256k1Error_InvalidTweakInvalid tweak for add_assign or mul_assignLDKSecp256k1Error_NotEnoughMemoryDidn't pass enough memory to context creation with preallocated memoryLDKSecp256k1Error_TweakCheckFailedtweak_add_check failed on an xonly public key
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Secp256k1ErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static Secp256k1Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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_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_TweakCheckFailed
public static final Secp256k1Error LDKSecp256k1Error_TweakCheckFailed
tweak_add_check failed on an xonly public key
-
LDKSecp256k1Error_NotEnoughMemory
public static final Secp256k1Error LDKSecp256k1Error_NotEnoughMemory
Didn't pass enough memory to context creation with preallocated memory
-
-
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 nameNullPointerException- if the argument is null
-
-