Struct iop_keyvault::Bip44PublicAccount
source · [−]pub struct Bip44PublicAccount<C: KeyDerivationCrypto + 'static> { /* private fields */ }
Expand description
Represents a given account of a given coin in the BIP32 tree.
Implementations
sourceimpl<C: KeyDerivationCrypto + 'static> Bip44PublicAccount<C>
impl<C: KeyDerivationCrypto + 'static> Bip44PublicAccount<C>
sourcepub fn new(
path: Bip44AccountPath,
network: &'static dyn Network<Suite = C>,
node: Bip32PublicNode<C>
) -> Self
pub fn new(
path: Bip44AccountPath,
network: &'static dyn Network<Suite = C>,
node: Bip32PublicNode<C>
) -> Self
Backdoor to mount a BIP44 account at any place in the BIP32 tree. Use only for implementing advanced or fringe non-standard use-cases.
sourcepub fn node(&self) -> &Bip32PublicNode<C>
pub fn node(&self) -> &Bip32PublicNode<C>
Accessor for the underlying BIP32 node.
sourcepub fn chain(&self, chain: Chain) -> Result<Bip44PublicSubAccount<C>>
pub fn chain(&self, chain: Chain) -> Result<Bip44PublicSubAccount<C>>
Creates a sub-account for either external keys (receiving addresses) or internal keys (change addresses). This distinction might help in accounting.
sourcepub fn key(&self, key: i32) -> Result<Bip44PublicKey<C>>
pub fn key(&self, key: i32) -> Result<Bip44PublicKey<C>>
Creates a key with a given index used on the chain for storing balance or authenticating actions. By default these keys are made on the receiving sub-account.
sourcepub fn bip44_path(&self) -> &Bip44AccountPath
pub fn bip44_path(&self) -> &Bip44AccountPath
Accessor for the BIP44 path of the account.
sourcepub fn bip32_path(&self) -> &Path
pub fn bip32_path(&self) -> &Path
Accessor for the BIP32 path of the account.
Trait Implementations
sourceimpl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44PublicAccount<C>
impl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44PublicAccount<C>
sourcefn clone(&self) -> Bip44PublicAccount<C>
fn clone(&self) -> Bip44PublicAccount<C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<C: Debug + KeyDerivationCrypto + 'static> Debug for Bip44PublicAccount<C>
impl<C: Debug + KeyDerivationCrypto + 'static> Debug for Bip44PublicAccount<C>
Auto Trait Implementations
impl<C> !RefUnwindSafe for Bip44PublicAccount<C>
impl<C> !Send for Bip44PublicAccount<C>
impl<C> !Sync for Bip44PublicAccount<C>
impl<C> Unpin for Bip44PublicAccount<C> where
<C as KeyDerivationCrypto>::ExtendedPublicKey: Unpin,
impl<C> !UnwindSafe for Bip44PublicAccount<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