pub enum Error {
WrapperDataInvalidSize,
WrapperDataFailedToDecrypt,
InvalidBech32Hrp,
InvalidBech32(Error),
UnexpectedBech32Length,
Xprv(PrivateKeyError),
Mnemonic(Error),
DerivationError(DerivationError),
InvalidSecretKeyExtended(TryFromSecretKeyExtendedError),
}Variants§
WrapperDataInvalidSize
Private key wrapper data of unexpected length
WrapperDataFailedToDecrypt
Failed to decrypt private key wrapper data
InvalidBech32Hrp
Unexpected bech32 HRP prefix
InvalidBech32(Error)
Unable to decode bech32 string
UnexpectedBech32Length
Decoded bech32 data of unexpected length
Xprv(PrivateKeyError)
Error relating to ed25519-bip32 private key
Mnemonic(Error)
Error relating to bip39 mnemonic
DerivationError(DerivationError)
Error when attempting to derive ed25519-bip32 key
InvalidSecretKeyExtended(TryFromSecretKeyExtendedError)
Error that may occurs when trying to decrypt a private key which is not valid.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<TryFromSecretKeyExtendedError> for Error
impl From<TryFromSecretKeyExtendedError> for Error
Source§fn from(source: TryFromSecretKeyExtendedError) -> Self
fn from(source: TryFromSecretKeyExtendedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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