Enum linera_base::crypto::CryptoError
source · pub enum CryptoError {
InvalidSignature {
error: String,
type_name: String,
},
NonHexDigits(FromHexError),
IncorrectHashSize(usize),
IncorrectPublicKeySize(usize),
ParseIntError(ParseIntError),
}Expand description
Error type for cryptographic errors.
Variants§
InvalidSignature
NonHexDigits(FromHexError)
IncorrectHashSize(usize)
IncorrectPublicKeySize(usize)
ParseIntError(ParseIntError)
Trait Implementations§
source§impl Debug for CryptoError
impl Debug for CryptoError
source§impl Display for CryptoError
impl Display for CryptoError
source§impl Error for CryptoError
impl Error for CryptoError
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
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<FromHexError> for CryptoError
impl From<FromHexError> for CryptoError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for CryptoError
impl From<ParseIntError> for CryptoError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl UnwindSafe for CryptoError
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