pub enum SignerError {
InvalidPrivateKey(String),
InvalidPublicKey(String),
InvalidSignature(String),
SigningFailed(String),
VerificationFailed,
InvalidHashLength {
expected: usize,
got: usize,
},
EntropyError,
AggregationError(String),
EncodingError(String),
ParseError(String),
}Expand description
Errors that can occur during signing, verification, or key management.
Variants§
InvalidPrivateKey(String)
The provided private key bytes are invalid (wrong length, out of range, or malformed).
InvalidPublicKey(String)
The provided public key bytes are invalid or not on the expected curve.
InvalidSignature(String)
The provided signature bytes are invalid or malformed.
SigningFailed(String)
The signing operation failed.
VerificationFailed
Signature verification did not pass.
InvalidHashLength
The provided digest/hash has an unexpected length.
EntropyError
Failed to generate random bytes from the OS CSPRNG.
AggregationError(String)
BLS signature aggregation failed.
EncodingError(String)
Encoding or decoding failed (bech32, base58, compact size, hex).
ParseError(String)
Parsing failed (descriptors, PSBT, script).
Trait Implementations§
Source§impl Debug for SignerError
impl Debug for SignerError
Source§impl Display for SignerError
impl Display for SignerError
Source§impl Error for SignerError
impl Error for SignerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SignerError
impl RefUnwindSafe for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl UnsafeUnpin for SignerError
impl UnwindSafe for SignerError
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