pub enum XkeyDecodeError {
    WrongExtendedKeyLength(usize),
    UnknownKeyType([u8; 4]),
    InvalidPubkey(InvalidPubkey<33>),
    InvalidType(u8),
    InvalidSecretKey,
}Variants§
WrongExtendedKeyLength(usize)
wrong length of extended pubkey data ({0}).
UnknownKeyType([u8; 4])
provided key is not a standard BIP-32 extended pubkey
InvalidPubkey(InvalidPubkey<33>)
extended pubkey contains {0}
InvalidType(u8)
xpriv contains invalid byte for the secret key type ({0:#04x}) which must be set to zero.
InvalidSecretKey
xpriv contains invalid data with secret key value overflowing over field order.
Trait Implementations§
Source§impl Clone for XkeyDecodeError
 
impl Clone for XkeyDecodeError
Source§fn clone(&self) -> XkeyDecodeError
 
fn clone(&self) -> XkeyDecodeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for XkeyDecodeError
 
impl Debug for XkeyDecodeError
Source§impl Display for XkeyDecodeError
 
impl Display for XkeyDecodeError
Source§impl Error for XkeyDecodeError
 
impl Error for XkeyDecodeError
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 XkeyDecodeError
 
impl From<Error> for XkeyDecodeError
Source§fn from(v: Error) -> XkeyDecodeError
 
fn from(v: Error) -> XkeyDecodeError
Converts to this type from the input type.
Source§impl From<InvalidPubkey<33>> for XkeyDecodeError
 
impl From<InvalidPubkey<33>> for XkeyDecodeError
Source§fn from(v: InvalidPubkey<33>) -> XkeyDecodeError
 
fn from(v: InvalidPubkey<33>) -> XkeyDecodeError
Converts to this type from the input type.
Source§impl From<XkeyDecodeError> for PsbtError
 
impl From<XkeyDecodeError> for PsbtError
Source§fn from(v: XkeyDecodeError) -> PsbtError
 
fn from(v: XkeyDecodeError) -> PsbtError
Converts to this type from the input type.
Source§impl From<XkeyDecodeError> for XkeyParseError
 
impl From<XkeyDecodeError> for XkeyParseError
Source§fn from(v: XkeyDecodeError) -> XkeyParseError
 
fn from(v: XkeyDecodeError) -> XkeyParseError
Converts to this type from the input type.
Source§impl PartialEq for XkeyDecodeError
 
impl PartialEq for XkeyDecodeError
impl Copy for XkeyDecodeError
impl Eq for XkeyDecodeError
impl StructuralPartialEq for XkeyDecodeError
Auto Trait Implementations§
impl Freeze for XkeyDecodeError
impl RefUnwindSafe for XkeyDecodeError
impl Send for XkeyDecodeError
impl Sync for XkeyDecodeError
impl Unpin for XkeyDecodeError
impl UnwindSafe for XkeyDecodeError
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.