Enum secp256k1::Error [−][src]
pub enum Error {
IncorrectSignature,
InvalidMessage,
InvalidPublicKey,
InvalidSignature,
InvalidSecretKey,
InvalidRecoveryId,
InvalidTweak,
NotEnoughMemory,
InvalidPublicKeySum,
}
Expand description
An ECDSA error
Variants
IncorrectSignature
Signature failed verification
InvalidMessage
Badly sized message (“messages” are actually fixed-sized digests; see the MESSAGE_SIZE
constant)
InvalidPublicKey
Bad public key
InvalidSignature
Bad signature
InvalidSecretKey
Bad secret key
InvalidRecoveryId
Bad recovery id
InvalidTweak
Invalid tweak for add_assign or mul_assign
NotEnoughMemory
Didn’t pass enough memory to context creation with preallocated memory
InvalidPublicKeySum
Bad set of public keys
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more