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_InvalidRecoveryId,
32 * Invalid tweak for add_assign or mul_assign
34 LDKSecp256k1Error_InvalidTweak,
36 * tweak_add_check failed on an xonly public key
38 LDKSecp256k1Error_TweakCheckFailed,
40 * Didn't pass enough memory to context creation with preallocated memory
42 LDKSecp256k1Error_NotEnoughMemory,
43 ; static native void init();