pub struct DerivationPath {
pub steps: Vec<DerivationStep>,
}Expand description
A BIP-32/BIP-44 derivation path (e.g., m/44'/60'/0'/0/0).
Fields§
§steps: Vec<DerivationStep>The steps in this path.
Implementations§
Source§impl DerivationPath
impl DerivationPath
Sourcepub fn parse(path: &str) -> Result<Self, SignerError>
pub fn parse(path: &str) -> Result<Self, SignerError>
Parse a BIP-32 path string like "m/44'/60'/0'/0/0".
Supported formats: 44' or 44h for hardened.
Sourcepub fn bitcoin_segwit(index: u32) -> Self
pub fn bitcoin_segwit(index: u32) -> Self
BIP-84 Bitcoin Segwit path: m/84'/0'/0'/0/{index}
Sourcepub fn bitcoin_taproot(index: u32) -> Self
pub fn bitcoin_taproot(index: u32) -> Self
BIP-86 Bitcoin Taproot path: m/86'/0'/0'/0/{index}
Trait Implementations§
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 moreAuto Trait Implementations§
impl Freeze for DerivationPath
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnsafeUnpin 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