pub struct ExtendedPrivateKey {
pub private_key: [u8; 32],
pub chain_code: [u8; 32],
pub depth: u8,
pub parent_fingerprint: [u8; 4],
pub child_number: u32,
}Fields§
§private_key: [u8; 32]§chain_code: [u8; 32]§depth: u8§parent_fingerprint: [u8; 4]§child_number: u32Implementations§
Source§impl ExtendedPrivateKey
impl ExtendedPrivateKey
pub fn master(seed: &[u8]) -> Result<Self>
pub fn public_key(&self) -> [u8; 33]
pub fn fingerprint(&self) -> [u8; 4]
pub fn derive(&self, index: u32) -> Result<Self>
pub fn derive_path(&self, path: &str) -> Result<Self>
pub fn neuter(&self) -> ExtendedPublicKey
pub fn serialize_private(&self, version: u32) -> String
pub fn serialize_public(&self, version: u32) -> String
Trait Implementations§
Source§impl Clone for ExtendedPrivateKey
impl Clone for ExtendedPrivateKey
Source§fn clone(&self) -> ExtendedPrivateKey
fn clone(&self) -> ExtendedPrivateKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for ExtendedPrivateKey
impl Drop for ExtendedPrivateKey
Auto Trait Implementations§
impl Freeze for ExtendedPrivateKey
impl RefUnwindSafe for ExtendedPrivateKey
impl Send for ExtendedPrivateKey
impl Sync for ExtendedPrivateKey
impl Unpin for ExtendedPrivateKey
impl UnsafeUnpin for ExtendedPrivateKey
impl UnwindSafe for ExtendedPrivateKey
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