Struct ed25519_dalek_xkeypair::DerivationPath [−][src]
pub struct DerivationPath(_);
Expand description
A list of ChildIndex items
Implementations
Build a DerivationPath from a list of ChildIndex items
pub fn bip32<P>(path: P) -> Result<DerivationPath, DerivationPathError> where
P: Into<Box<[ChildIndex], Global>>,
pub fn bip32<P>(path: P) -> Result<DerivationPath, DerivationPathError> where
P: Into<Box<[ChildIndex], Global>>,
Build a BIP32 style DerivationPath. This will fail if the length of the path is greater than 255 items
pub fn bip44(
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<DerivationPath, DerivationPathError>
pub fn bip44(
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<DerivationPath, DerivationPathError>
Build a BIP44 style DerivationPath: m/44'/coin'/account'/change/address
pub fn bip49(
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<DerivationPath, DerivationPathError>
pub fn bip49(
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<DerivationPath, DerivationPathError>
Build a BIP49 style DerivationPath: m/49'/coin'/account'/change/address
Get a reference to the list of ChildIndex items
Get the DerivationPathType. This will check the “purpose” index in BIP44/49 style derivation paths or otherwise return BIP32 if the length is less than 255
Trait Implementations
Performs the conversion.
type Err = DerivationPathParseError
type Err = DerivationPathParseError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
type IntoIter = Iter<'a, ChildIndex>
type IntoIter = Iter<'a, ChildIndex>
Which kind of iterator are we turning this into?
type Item = &'a ChildIndex
type Item = &'a ChildIndex
The type of the elements being iterated over.
Creates an iterator from a value. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnwindSafe for DerivationPath
Blanket Implementations
Mutably borrows from an owned value. Read more