Enum lnpbp_secp256k1zkp::Error
source · pub enum Error {
IncapableContext,
IncorrectSignature,
InvalidMessage,
InvalidPublicKey,
InvalidCommit,
InvalidSignature,
InvalidSecretKey,
InvalidRecoveryId,
IncorrectCommitSum,
InvalidRangeProof,
PartialSigFailure,
}
Expand description
An ECDSA error
Variants§
IncapableContext
A Secp256k1
was used for an operation, but it was not created to
support this (so necessary precomputations have not been done)
IncorrectSignature
Signature failed verification
InvalidMessage
Badly sized message (“messages” are actually fixed-sized digests; see the MESSAGE_SIZE
constant)
InvalidPublicKey
Bad public key
InvalidCommit
Bad commit
InvalidSignature
Bad signature
InvalidSecretKey
Bad secret key
InvalidRecoveryId
Bad recovery id
IncorrectCommitSum
Summing commitments led to incorrect result
InvalidRangeProof
Range proof is invalid
PartialSigFailure
Error creating partial signature
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more