pub enum SignerError {
InvalidSignature,
InvalidRecoveryId(u8),
RecoveryFailed,
VerificationFailed,
InvalidHashLength(usize),
SigningFailed(String),
InvalidHex(String),
InvalidBase64(String),
InvalidAddress,
}Expand description
Errors that can occur during signing and verification operations
Variants§
InvalidSignature
Invalid signature format or length
InvalidRecoveryId(u8)
Invalid recovery id (must be 0-3)
RecoveryFailed
Failed to recover public key from signature
VerificationFailed
Signature verification failed
InvalidHashLength(usize)
Invalid message hash length (must be 32 bytes)
SigningFailed(String)
Signing operation failed
InvalidHex(String)
Invalid hex string
InvalidBase64(String)
Invalid base64 string
InvalidAddress
Invalid address format
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 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