[−][src]Struct derivation_path::DerivationPath
A list of ChildIndex items
Implementations
impl DerivationPath
[src]
pub fn new<P>(path: P) -> Self where
P: Into<Box<[ChildIndex]>>,
[src]
P: Into<Box<[ChildIndex]>>,
Build a DerivationPath from a list of ChildIndex items
pub fn bip32<P>(path: P) -> Result<Self, DerivationPathError> where
P: Into<Box<[ChildIndex]>>,
[src]
P: Into<Box<[ChildIndex]>>,
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<Self, DerivationPathError>
[src]
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<Self, DerivationPathError>
Build a BIP44 style DerivationPath: m/44'/coin'/account'/change/address
pub fn bip49(
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<Self, DerivationPathError>
[src]
coin: u32,
account: u32,
change: u32,
address: u32
) -> Result<Self, DerivationPathError>
Build a BIP49 style DerivationPath: m/49'/coin'/account'/change/address
pub fn path(&self) -> &[ChildIndex]
[src]
Get a reference to the list of ChildIndex items
pub fn path_type(&self) -> DerivationPathType
[src]
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
impl AsRef<[ChildIndex]> for DerivationPath
[src]
fn as_ref(&self) -> &[ChildIndex]
[src]
impl Clone for DerivationPath
[src]
fn clone(&self) -> DerivationPath
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DerivationPath
[src]
impl Display for DerivationPath
[src]
impl Eq for DerivationPath
[src]
impl FromStr for DerivationPath
[src]
type Err = DerivationPathParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<'a> IntoIterator for &'a DerivationPath
[src]
type IntoIter = Iter<'a, ChildIndex>
Which kind of iterator are we turning this into?
type Item = &'a ChildIndex
The type of the elements being iterated over.
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<DerivationPath> for DerivationPath
[src]
fn eq(&self, other: &DerivationPath) -> bool
[src]
fn ne(&self, other: &DerivationPath) -> bool
[src]
impl StructuralEq for DerivationPath
[src]
impl StructuralPartialEq for DerivationPath
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,