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
-
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
-
LDKSecp256k1Error_InvalidMessage
public static final Secp256k1Error LDKSecp256k1Error_InvalidMessage
-
LDKSecp256k1Error_InvalidPublicKey
public static final Secp256k1Error LDKSecp256k1Error_InvalidPublicKey
-
LDKSecp256k1Error_InvalidSignature
public static final Secp256k1Error LDKSecp256k1Error_InvalidSignature
-
LDKSecp256k1Error_InvalidSecretKey
public static final Secp256k1Error LDKSecp256k1Error_InvalidSecretKey
-
LDKSecp256k1Error_InvalidRecoveryId
public static final Secp256k1Error LDKSecp256k1Error_InvalidRecoveryId
-
LDKSecp256k1Error_InvalidTweak
public static final Secp256k1Error LDKSecp256k1Error_InvalidTweak
-
LDKSecp256k1Error_TweakCheckFailed
public static final Secp256k1Error LDKSecp256k1Error_TweakCheckFailed
-
LDKSecp256k1Error_NotEnoughMemory
public static final Secp256k1Error LDKSecp256k1Error_NotEnoughMemory
-
-
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
-
-