pub enum IdentityError {
InvalidLength(usize, usize),
InvalidHexEncoding(FromHexError),
InvalidSignature(SignatureError),
}Variants§
InvalidLength(usize, usize)
Invalid number of bytes.
InvalidHexEncoding(FromHexError)
String contains invalid hexadecimal characters.
InvalidSignature(SignatureError)
Errors which may occur while processing signatures and key pairs.
This error may arise due to:
-
Being given bytes with a length different to what was expected.
-
A problem decompressing
r, a curve point, in theSignature, or the curve point for aPublicKey. -
Failure of a signature to satisfy the verification equation.
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
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()
Source§impl From<Error> for IdentityError
impl From<Error> for IdentityError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for IdentityError
impl From<FromHexError> for IdentityError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdentityError
impl !RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl !UnwindSafe for IdentityError
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