Struct cfxkey::ExtendedPublic
source · pub struct ExtendedPublic { /* private fields */ }
Expand description
Extended public key, allows deterministic derivation of subsequent keys.
Implementations§
source§impl ExtendedPublic
impl ExtendedPublic
sourcepub fn new(public: Public, chain_code: H256) -> Self
pub fn new(public: Public, chain_code: H256) -> Self
New extended public key from known parent and chain code
sourcepub fn from_secret(secret: &ExtendedSecret) -> Result<Self, DerivationError>
pub fn from_secret(secret: &ExtendedSecret) -> Result<Self, DerivationError>
Create new extended public key from known secret
sourcepub fn derive<T>(&self, index: Derivation<T>) -> Result<Self, DerivationError>where
T: Label,
pub fn derive<T>(&self, index: Derivation<T>) -> Result<Self, DerivationError>where
T: Label,
Derive new public key Operation is defined only for index belongs [0..2^31)
pub fn public(&self) -> &Public
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedPublic
impl Send for ExtendedPublic
impl Sync for ExtendedPublic
impl Unpin for ExtendedPublic
impl UnwindSafe for ExtendedPublic
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