Struct iop_keyvault::secp256k1::SecpExtPrivateKey
source · [−]pub struct SecpExtPrivateKey { /* private fields */ }
Expand description
Implementation of Secp256k1::ExtendedPrivateKey
Implementations
Trait Implementations
sourceimpl Clone for SecpExtPrivateKey
impl Clone for SecpExtPrivateKey
sourcefn clone(&self) -> SecpExtPrivateKey
fn clone(&self) -> SecpExtPrivateKey
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 ExtendedPrivateKey<Secp256k1> for SecpExtPrivateKey
impl ExtendedPrivateKey<Secp256k1> for SecpExtPrivateKey
sourcefn derive_normal_child(&self, idx: i32) -> Result<SecpExtPrivateKey>
fn derive_normal_child(&self, idx: i32) -> Result<SecpExtPrivateKey>
Normal derivation allows the neutered extended public key to calculate child extended public keys without revealing any private keys. Read more
sourcefn derive_hardened_child(&self, idx: i32) -> Result<SecpExtPrivateKey>
fn derive_hardened_child(&self, idx: i32) -> Result<SecpExtPrivateKey>
Hardened derivation makes it impossible to the neutered extended public key to calculate children. It uses a different derivation algorithm. Read more
sourcefn neuter(&self) -> SecpExtPublicKey
fn neuter(&self) -> SecpExtPublicKey
Neutering an extended private key gives an extended public key that contains the private key neutered, plus the chain code. It is useless to reveal the chain code when hardened derivation is used. Read more
sourcefn private_key(&self) -> SecpPrivateKey
fn private_key(&self) -> SecpPrivateKey
Throws away the chain code and gives back only the private key from the extended private key.
Auto Trait Implementations
impl RefUnwindSafe for SecpExtPrivateKey
impl Send for SecpExtPrivateKey
impl Sync for SecpExtPrivateKey
impl Unpin for SecpExtPrivateKey
impl UnwindSafe for SecpExtPrivateKey
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