pub struct DerivationPath { /* private fields */ }Expand description
BIP32 derivation path.
Implementations§
Source§impl DerivationPath
impl DerivationPath
Sourcepub fn bip_standard(
address_type: AddressType,
network: Network,
account: u32,
change: bool,
address_index: u32,
) -> Self
pub fn bip_standard( address_type: AddressType, network: Network, account: u32, change: bool, address_index: u32, ) -> Self
Create a BIP44/49/84 standard path.
Format: m/purpose'/coin_type'/account'/change/address_index
§Panics
This function will not panic as the path format is always valid.
Sourcepub fn from_path_str(path: &str) -> Result<Self, Error>
pub fn from_path_str(path: &str) -> Result<Self, Error>
Sourcepub const fn inner(&self) -> &DerivationPath
pub const fn inner(&self) -> &DerivationPath
Get the inner bitcoin derivation path.
Trait Implementations§
Source§impl AsRef<DerivationPath> for DerivationPath
Available on crate feature alloc only.
impl AsRef<DerivationPath> for DerivationPath
Available on crate feature
alloc only.Source§fn as_ref(&self) -> &DerivationPath
fn as_ref(&self) -> &DerivationPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DerivationPath
impl Clone for DerivationPath
Source§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
Returns a duplicate 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 DerivationPath
impl Debug for DerivationPath
Source§impl Display for DerivationPath
Available on crate feature alloc only.
impl Display for DerivationPath
Available on crate feature
alloc only.Source§impl PartialEq for DerivationPath
impl PartialEq for DerivationPath
impl Eq for DerivationPath
impl StructuralPartialEq for DerivationPath
Auto Trait Implementations§
impl Freeze for DerivationPath
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnwindSafe for DerivationPath
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