4 * Represents an error returned from libsecp256k1 during validation of some secp256k1 data
6 public enum Secp256k1Error {
8 * Signature failed verification
10 LDKSecp256k1Error_IncorrectSignature,
12 * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
14 LDKSecp256k1Error_InvalidMessage,
18 LDKSecp256k1Error_InvalidPublicKey,
22 LDKSecp256k1Error_InvalidSignature,
26 LDKSecp256k1Error_InvalidSecretKey,
30 LDKSecp256k1Error_InvalidSharedSecret,
34 LDKSecp256k1Error_InvalidRecoveryId,
36 * Invalid tweak for add_assign or mul_assign
38 LDKSecp256k1Error_InvalidTweak,
40 * Didn't pass enough memory to context creation with preallocated memory
42 LDKSecp256k1Error_NotEnoughMemory,
44 * Bad set of public keys.
46 LDKSecp256k1Error_InvalidPublicKeySum,
48 * The only valid parity values are 0 or 1.
50 LDKSecp256k1Error_InvalidParityValue,
51 ; static native void init();