Enum secp256k1zkp::Error
source · pub enum Error {
IncapableContext,
IncorrectSignature,
InvalidMessage,
InvalidPublicKey,
InvalidCommit,
InvalidSignature,
InvalidSecretKey,
InvalidRecoveryId,
IncorrectCommitSum,
InvalidRangeProof,
PartialSigFailure,
SigSubtractionFailure,
}
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
SigSubtractionFailure
Failure subtracting two signatures
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more