pub struct ExtendedPrivateKey { /* private fields */ }
Implementations§
Source§impl ExtendedPrivateKey
impl ExtendedPrivateKey
pub fn new( private_key: &PrivateKey, chain_code: &[u8], depth: &u8, index: &u32, parent_fingerprint: Option<&[u8]>, ) -> Self
pub fn to_string_impl(&self) -> Result<String, BSVErrors>
pub fn from_mnemonic_and_passphrase_impl( mnemonic: &[u8], passphrase: Option<Vec<u8>>, ) -> Result<Self, BSVErrors>
pub fn from_string_impl(xprv_string: &str) -> Result<Self, BSVErrors>
pub fn from_random_impl() -> Result<Self, BSVErrors>
pub fn from_seed_impl(seed: &[u8]) -> Result<Self, BSVErrors>
pub fn derive_impl(&self, index: u32) -> Result<ExtendedPrivateKey, BSVErrors>
pub fn derive_from_path_impl( &self, path: &str, ) -> Result<ExtendedPrivateKey, BSVErrors>
Source§impl ExtendedPrivateKey
impl ExtendedPrivateKey
pub fn get_private_key(&self) -> PrivateKey
pub fn get_public_key(&self) -> PublicKey
pub fn get_chain_code(&self) -> Vec<u8> ⓘ
pub fn get_depth(&self) -> u8
pub fn get_parent_fingerprint(&self) -> Vec<u8> ⓘ
pub fn get_index(&self) -> u32
Source§impl ExtendedPrivateKey
impl ExtendedPrivateKey
pub fn derive(&self, index: u32) -> Result<ExtendedPrivateKey, BSVErrors>
pub fn derive_from_path( &self, path: &str, ) -> Result<ExtendedPrivateKey, BSVErrors>
pub fn from_seed(seed: &[u8]) -> Result<ExtendedPrivateKey, BSVErrors>
pub fn from_random() -> Result<ExtendedPrivateKey, BSVErrors>
pub fn from_string(xprv_string: &str) -> Result<ExtendedPrivateKey, BSVErrors>
pub fn to_string(&self) -> Result<String, BSVErrors>
pub fn from_mnemonic( mnemonic: &[u8], passphrase: Option<Vec<u8>>, ) -> Result<ExtendedPrivateKey, BSVErrors>
Auto Trait Implementations§
impl Freeze for ExtendedPrivateKey
impl RefUnwindSafe for ExtendedPrivateKey
impl Send for ExtendedPrivateKey
impl Sync for ExtendedPrivateKey
impl Unpin 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