Struct iop_keyvault::Bip44Coin [−][src]
Represents a given coin in the BIP32 tree.
Implementations
impl<C: KeyDerivationCrypto + 'static> Bip44Coin<C>
[src]
pub fn new(
path: Bip44CoinPath,
network: &'static dyn Network<Suite = C>,
node: Bip32Node<C>
) -> Self
[src]
path: Bip44CoinPath,
network: &'static dyn Network<Suite = C>,
node: Bip32Node<C>
) -> Self
Backdoor to mount a full BIP44 hierarchy at any place in the BIP32 tree. Use only for implementing advanced or fringe non-standard use-cases.
pub fn node(&self) -> &Bip32Node<C>
[src]
Accessor for the underlying BIP32 node.
pub fn account(&self, account: i32) -> Result<Bip44Account<C>>
[src]
Creates an account in the coin with the given index.
pub fn bip44_path(&self) -> &Bip44CoinPath
[src]
Accessor for the BIP44 path of the coin.
pub fn bip32_path(&self) -> &Path
[src]
Accessor for the BIP32 path of the coin.
pub fn network(&self) -> &'static dyn Network<Suite = C>
[src]
Accessor for the underlying nwtwork.
impl Bip44Coin<Secp256k1>
[src]
pub fn to_xprv(&self) -> String
[src]
Returns the extended private key in the BIP32 readable format with the version bytes of the network.
Trait Implementations
impl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44Coin<C>
[src]
impl<C: Debug + KeyDerivationCrypto + 'static> Debug for Bip44Coin<C>
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for Bip44Coin<C>
impl<C> !Send for Bip44Coin<C>
impl<C> !Sync for Bip44Coin<C>
impl<C> Unpin for Bip44Coin<C> where
<C as KeyDerivationCrypto>::ExtendedPrivateKey: Unpin,
<C as KeyDerivationCrypto>::ExtendedPrivateKey: Unpin,
impl<C> !UnwindSafe for Bip44Coin<C>
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,