pub struct Bip32Derivation { /* private fields */ }
Expand description
The BIP 32 derivation path at which a key can be found.
Implementations§
Source§impl Bip32Derivation
impl Bip32Derivation
Sourcepub fn seed_fingerprint(&self) -> &[u8; 32]
pub fn seed_fingerprint(&self) -> &[u8; 32]
Sourcepub fn derivation_path(&self) -> &Vec<ChildNumber>
pub fn derivation_path(&self) -> &Vec<ChildNumber>
The sequence of indices corresponding to the HD path.
Source§impl Bip32Derivation
impl Bip32Derivation
Sourcepub fn extract_bip_44_fields(
&self,
seed_fp: &SeedFingerprint,
expected_coin_type: ChildNumber,
) -> Option<(AccountId, TransparentKeyScope, NonHardenedChildIndex)>
pub fn extract_bip_44_fields( &self, seed_fp: &SeedFingerprint, expected_coin_type: ChildNumber, ) -> Option<(AccountId, TransparentKeyScope, NonHardenedChildIndex)>
Extracts the BIP 44 account index, scope, and address index from this derivation path.
Returns None
if the seed fingerprints don’t match, or if this is a non-standard
derivation path.
Trait Implementations§
Source§impl Debug for Bip32Derivation
impl Debug for Bip32Derivation
Source§impl PartialEq for Bip32Derivation
impl PartialEq for Bip32Derivation
impl Eq for Bip32Derivation
impl StructuralPartialEq for Bip32Derivation
Auto Trait Implementations§
impl Freeze for Bip32Derivation
impl RefUnwindSafe for Bip32Derivation
impl Send for Bip32Derivation
impl Sync for Bip32Derivation
impl Unpin for Bip32Derivation
impl UnwindSafe for Bip32Derivation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more