Struct iop_keyvault::Bip44Key
source · [−]pub struct Bip44Key<C: KeyDerivationCrypto + 'static> { /* private fields */ }
Expand description
Represents a key with a given index within a sub-account used on the chain for storing balance or authenticating actions.
Implementations
sourceimpl<C: KeyDerivationCrypto + 'static> Bip44Key<C>
impl<C: KeyDerivationCrypto + 'static> Bip44Key<C>
sourcepub fn new(
path: Bip44KeyPath,
network: &'static dyn Network<Suite = C>,
node: Bip32Node<C>
) -> Self
pub fn new(
path: Bip44KeyPath,
network: &'static dyn Network<Suite = C>,
node: Bip32Node<C>
) -> Self
Backdoor to mount a BIP44 key at any place in the BIP32 tree. Use only for implementing advanced or fringe non-standard use-cases.
sourcepub fn bip44_path(&self) -> &Bip44KeyPath
pub fn bip44_path(&self) -> &Bip44KeyPath
Accessor for the BIP44 path of the key.
sourcepub fn bip32_path(&self) -> &Path
pub fn bip32_path(&self) -> &Path
Accessor for the BIP32 path of the key.
sourcepub fn to_private_key(&self) -> C::PrivateKey
pub fn to_private_key(&self) -> C::PrivateKey
Creates the private key for authenticating actions.
sourcepub fn neuter(&self) -> Bip44PublicKey<C>
pub fn neuter(&self) -> Bip44PublicKey<C>
Neuters the key and converts it into its public API
Trait Implementations
sourceimpl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44Key<C>
impl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44Key<C>
Auto Trait Implementations
impl<C> !RefUnwindSafe for Bip44Key<C>
impl<C> !Send for Bip44Key<C>
impl<C> !Sync for Bip44Key<C>
impl<C> Unpin for Bip44Key<C> where
<C as KeyDerivationCrypto>::ExtendedPrivateKey: Unpin,
impl<C> !UnwindSafe for Bip44Key<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