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