pub enum WinternitzError {
InvalidMnemonic,
InvalidLength,
SignatureError,
}Expand description
Errors returned by this crate.
Variants§
InvalidMnemonic
The mnemonic failed BIP-39 validation: wrong word count, unknown word, or invalid checksum.
InvalidLength
A byte slice supplied to a TryFrom impl, or a passphrase, exceeded
the expected length.
SignatureError
A signature failed to verify.
Trait Implementations§
Source§impl Debug for WinternitzError
impl Debug for WinternitzError
Source§impl Display for WinternitzError
impl Display for WinternitzError
Source§impl Error for WinternitzError
impl Error for WinternitzError
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 WinternitzError
impl RefUnwindSafe for WinternitzError
impl Send for WinternitzError
impl Sync for WinternitzError
impl Unpin for WinternitzError
impl UnsafeUnpin for WinternitzError
impl UnwindSafe for WinternitzError
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