1 namespace org { namespace ldk { namespace enums {/**
2 * Represents an error returned from libsecp256k1 during validation of some secp256k1 data
4 public enum Secp256k1Error {
6 * Signature failed verification
8 LDKSecp256k1Error_IncorrectSignature,
10 * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
12 LDKSecp256k1Error_InvalidMessage,
16 LDKSecp256k1Error_InvalidPublicKey,
20 LDKSecp256k1Error_InvalidSignature,
24 LDKSecp256k1Error_InvalidSecretKey,
28 LDKSecp256k1Error_InvalidSharedSecret,
32 LDKSecp256k1Error_InvalidRecoveryId,
34 * Invalid tweak for add_assign or mul_assign
36 LDKSecp256k1Error_InvalidTweak,
38 * Didn't pass enough memory to context creation with preallocated memory
40 LDKSecp256k1Error_NotEnoughMemory,
42 * Bad set of public keys.
44 LDKSecp256k1Error_InvalidPublicKeySum,
46 * The only valid parity values are 0 or 1.
48 LDKSecp256k1Error_InvalidParityValue,
50 * Invalid Elligator Swift Value
52 LDKSecp256k1Error_InvalidEllSwift,