Struct cfxstore::cfxkey::ExtendedSecret
pub struct ExtendedSecret { /* private fields */ }
Expand description
Extended secret key, allows deterministic derivation of subsequent keys.
Implementations§
§impl ExtendedSecret
impl ExtendedSecret
pub 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.
pub fn new_random(secret: Secret) -> ExtendedSecret
pub fn new_random(secret: Secret) -> ExtendedSecret
New extended key from given secret with the random chain code.
pub 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).
pub 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 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