Struct cfxkey::ExtendedSecret
source · pub struct ExtendedSecret { /* private fields */ }
Expand description
Extended secret key, allows deterministic derivation of subsequent keys.
Implementations§
source§impl 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 (in a deterministic way).
sourcepub fn derive<T>(&self, index: Derivation<T>) -> ExtendedSecretwhere
T: Label,
pub fn derive<T>(&self, index: Derivation<T>) -> ExtendedSecretwhere
T: Label,
Derive new private key
Auto Trait Implementations§
impl Freeze for ExtendedSecret
impl RefUnwindSafe for ExtendedSecret
impl Send for ExtendedSecret
impl Sync for ExtendedSecret
impl Unpin for ExtendedSecret
impl UnwindSafe for ExtendedSecret
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more