Struct iop_keyvault::Bip44Coin
source · [−]pub struct Bip44Coin<C: KeyDerivationCrypto + 'static> { /* private fields */ }
Expand description
Represents a given coin in the BIP32 tree.
Implementations
sourceimpl<C: KeyDerivationCrypto + 'static> Bip44Coin<C>
impl<C: KeyDerivationCrypto + 'static> Bip44Coin<C>
sourcepub fn new(
path: Bip44CoinPath,
network: &'static dyn Network<Suite = C>,
node: Bip32Node<C>
) -> Self
pub fn new(
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.
sourcepub fn account(&self, account: i32) -> Result<Bip44Account<C>>
pub fn account(&self, account: i32) -> Result<Bip44Account<C>>
Creates an account in the coin with the given index.
sourcepub fn bip44_path(&self) -> &Bip44CoinPath
pub fn bip44_path(&self) -> &Bip44CoinPath
Accessor for the BIP44 path of the coin.
sourcepub fn bip32_path(&self) -> &Path
pub fn bip32_path(&self) -> &Path
Accessor for the BIP32 path of the coin.
Trait Implementations
sourceimpl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44Coin<C>
impl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44Coin<C>
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,
impl<C> !UnwindSafe for Bip44Coin<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more