pub enum DerivationError {
InvalidDerivationPath(String),
InvalidNetworkType(String),
InvalidPurposeField(String),
InvalidXOnlyPubkey(String),
Bip39Error(Error),
Bip32Error(Error),
BitcoinError(String),
SecpError(Error),
ParseError(ParseIntError),
GenericError(String),
}
Expand description
Custom error type for bitcoin key and address operations
Variants§
InvalidDerivationPath(String)
Error when an invalid derivation path is provided
InvalidNetworkType(String)
Error when an unsupported network type is used
InvalidPurposeField(String)
Error when the purpose field (first number after m/) is invalid
InvalidXOnlyPubkey(String)
Error when creating or using an X-only public key
Bip39Error(Error)
Error propagated from the BIP39 library
Bip32Error(Error)
Error propagated from the BIP32 library
BitcoinError(String)
Error from the Bitcoin library
SecpError(Error)
Error from the secp256k1 library
ParseError(ParseIntError)
Error when parsing numbers in derivation paths
GenericError(String)
General catch-all error
Trait Implementations§
Source§impl Debug for DerivationError
impl Debug for DerivationError
Source§impl Display for DerivationError
impl Display for DerivationError
Source§impl Error for DerivationError
impl Error for DerivationError
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()
Source§impl From<Error> for DerivationError
impl From<Error> for DerivationError
Source§impl From<Error> for DerivationError
impl From<Error> for DerivationError
Source§impl From<Error> for DerivationError
impl From<Error> for DerivationError
Source§impl From<ParseIntError> for DerivationError
impl From<ParseIntError> for DerivationError
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DerivationError
impl RefUnwindSafe for DerivationError
impl Send for DerivationError
impl Sync for DerivationError
impl Unpin for DerivationError
impl UnwindSafe for DerivationError
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