pub struct ExtendedPublicKey { /* private fields */ }
Implementations§
Source§impl ExtendedPublicKey
impl ExtendedPublicKey
pub fn new( public_key: &PublicKey, chain_code: &[u8], depth: &u8, index: &u32, parent_fingerprint: Option<&[u8]>, ) -> Self
pub fn to_string_impl(&self) -> Result<String, BSVErrors>
pub fn from_string_impl(xpub_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<ExtendedPublicKey, BSVErrors>
pub fn derive_from_path_impl( &self, path: &str, ) -> Result<ExtendedPublicKey, BSVErrors>
Source§impl ExtendedPublicKey
impl ExtendedPublicKey
pub fn get_public_key(&self) -> PublicKey
pub fn from_xpriv(xpriv: &ExtendedPrivateKey) -> Self
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 ExtendedPublicKey
impl ExtendedPublicKey
pub fn derive(&self, index: u32) -> Result<ExtendedPublicKey, BSVErrors>
pub fn derive_from_path( &self, path: &str, ) -> Result<ExtendedPublicKey, BSVErrors>
pub fn from_seed(seed: &[u8]) -> Result<ExtendedPublicKey, BSVErrors>
pub fn from_random() -> Result<ExtendedPublicKey, BSVErrors>
pub fn from_string(xpub_string: &str) -> Result<ExtendedPublicKey, BSVErrors>
pub fn to_string(&self) -> Result<String, BSVErrors>
Auto Trait Implementations§
impl Freeze for ExtendedPublicKey
impl RefUnwindSafe for ExtendedPublicKey
impl Send for ExtendedPublicKey
impl Sync for ExtendedPublicKey
impl Unpin for ExtendedPublicKey
impl UnwindSafe for ExtendedPublicKey
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