Struct parity_crypto::publickey::ExtendedSecret
source · [−]pub struct ExtendedSecret { /* private fields */ }
Expand description
Extended secret key, allows deterministic derivation of subsequent keys.
Implementations
sourceimpl ExtendedSecret
impl ExtendedSecret
sourcepub fn with_code(secret: Secret, chain_code: H256) -> ExtendedSecret
pub fn with_code(secret: Secret, chain_code: H256) -> ExtendedSecret
New extended key from given secret and chain code.
sourcepub fn new_random(secret: Secret) -> ExtendedSecret
pub fn new_random(secret: Secret) -> ExtendedSecret
New extended key from given secret with the random chain code.
sourcepub fn new(secret: Secret) -> ExtendedSecret
pub fn new(secret: Secret) -> ExtendedSecret
New extended key from given secret. Chain code will be derived from the secret itself (deterministically).
sourcepub fn derive<T>(&self, index: Derivation<T>) -> ExtendedSecret where
T: Label,
pub fn derive<T>(&self, index: Derivation<T>) -> ExtendedSecret where
T: Label,
Derive new private key
Auto Trait Implementations
impl RefUnwindSafe for ExtendedSecret
impl Send for ExtendedSecret
impl Sync for ExtendedSecret
impl Unpin for ExtendedSecret
impl UnwindSafe for ExtendedSecret
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more