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_IncorrectSignature
Signature failed verificationLDKSecp256k1Error_InvalidMessage
Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)LDKSecp256k1Error_InvalidParityValue
The only valid parity values are 0 or 1.LDKSecp256k1Error_InvalidPublicKey
Bad public keyLDKSecp256k1Error_InvalidPublicKeySum
Bad set of public keys.LDKSecp256k1Error_InvalidRecoveryId
Bad recovery idLDKSecp256k1Error_InvalidSecretKey
Bad secret keyLDKSecp256k1Error_InvalidSharedSecret
Bad shared secret.LDKSecp256k1Error_InvalidSignature
Bad signatureLDKSecp256k1Error_InvalidTweak
Invalid tweak for add_assign or mul_assignLDKSecp256k1Error_NotEnoughMemory
Didn't pass enough memory to context creation with preallocated memory
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Secp256k1Error
valueOf(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_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 nameNullPointerException
- if the argument is null
-
-