pub enum EthereumDerivationPath<N: EthereumNetwork> {
Ethereum(ChildIndex),
Exodus(ChildIndex),
Jaxx(ChildIndex),
MetaMask(ChildIndex),
MyEtherWallet(ChildIndex),
Trezor(ChildIndex),
KeepKey(ChildIndex),
LedgerLive(ChildIndex),
Electrum(ChildIndex),
ImToken(ChildIndex),
LedgerLegacy(ChildIndex),
Custom(Vec<ChildIndex>, PhantomData<N>),
}Expand description
Represents a Ethereum derivation path
Variants§
Ethereum(ChildIndex)
Ethereum Standard - m/44’/60’/0’/0/{index}
Exodus(ChildIndex)
Exodus - m/44’/60’/0’/0/{index}
Jaxx(ChildIndex)
Jaxx - m/44’/60’/0’/0/{index}
MetaMask(ChildIndex)
Metamask - m/44’/60’/0’/0/{index}
MyEtherWallet(ChildIndex)
MyEtherWallet - m/44’/60’/0’/0/{index}
Trezor(ChildIndex)
Trezor - m/44’/60’/0’/0/{index}
KeepKey(ChildIndex)
KeepKey - m/44’/60’/{index}’/0/0
LedgerLive(ChildIndex)
Ledger Live - m/44’/60’/{index}’/0/0
Electrum(ChildIndex)
Electrum - m/44’/60’/0’/{index}
ImToken(ChildIndex)
imToken - m/44’/60’/0’/{index}
LedgerLegacy(ChildIndex)
imToken - m/44’/60’/0’/{index}
Custom(Vec<ChildIndex>, PhantomData<N>)
Custom Ethereum derivation path
Trait Implementations§
Source§impl<N: Clone + EthereumNetwork> Clone for EthereumDerivationPath<N>
impl<N: Clone + EthereumNetwork> Clone for EthereumDerivationPath<N>
Source§fn clone(&self) -> EthereumDerivationPath<N>
fn clone(&self) -> EthereumDerivationPath<N>
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<N: EthereumNetwork> Debug for EthereumDerivationPath<N>
impl<N: EthereumNetwork> Debug for EthereumDerivationPath<N>
Source§impl<N: EthereumNetwork> DerivationPath for EthereumDerivationPath<N>
impl<N: EthereumNetwork> DerivationPath for EthereumDerivationPath<N>
Source§fn to_vec(&self) -> Result<Vec<ChildIndex>, DerivationPathError>
fn to_vec(&self) -> Result<Vec<ChildIndex>, DerivationPathError>
Returns a child index vector given the derivation path.
Source§fn from_vec(path: &Vec<ChildIndex>) -> Result<Self, DerivationPathError>
fn from_vec(path: &Vec<ChildIndex>) -> Result<Self, DerivationPathError>
Returns a derivation path given the child index vector.
Source§impl<N: EthereumNetwork> Display for EthereumDerivationPath<N>
impl<N: EthereumNetwork> Display for EthereumDerivationPath<N>
Source§impl<N: EthereumNetwork> FromStr for EthereumDerivationPath<N>
impl<N: EthereumNetwork> FromStr for EthereumDerivationPath<N>
Source§impl<N: PartialEq + EthereumNetwork> PartialEq for EthereumDerivationPath<N>
impl<N: PartialEq + EthereumNetwork> PartialEq for EthereumDerivationPath<N>
Source§impl<'a, N: EthereumNetwork> TryFrom<&'a [ChildIndex]> for EthereumDerivationPath<N>
impl<'a, N: EthereumNetwork> TryFrom<&'a [ChildIndex]> for EthereumDerivationPath<N>
Source§type Error = DerivationPathError
type Error = DerivationPathError
The type returned in the event of a conversion error.
Source§impl<N: EthereumNetwork> TryFrom<Vec<ChildIndex>> for EthereumDerivationPath<N>
impl<N: EthereumNetwork> TryFrom<Vec<ChildIndex>> for EthereumDerivationPath<N>
impl<N: Eq + EthereumNetwork> Eq for EthereumDerivationPath<N>
impl<N: EthereumNetwork> StructuralPartialEq for EthereumDerivationPath<N>
Auto Trait Implementations§
impl<N> Freeze for EthereumDerivationPath<N>
impl<N> RefUnwindSafe for EthereumDerivationPath<N>where
N: RefUnwindSafe,
impl<N> Send for EthereumDerivationPath<N>
impl<N> Sync for EthereumDerivationPath<N>
impl<N> Unpin for EthereumDerivationPath<N>where
N: Unpin,
impl<N> UnwindSafe for EthereumDerivationPath<N>where
N: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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