pub struct MasterKeys {
pub private_key_hex: String,
pub public_key_hex: String,
pub chain_code_hex: String,
}Fields§
§private_key_hex: String§public_key_hex: String§chain_code_hex: StringImplementations§
Source§impl MasterKeys
impl MasterKeys
pub fn get_wif(&self, network: Network, should_compress: bool) -> String
pub fn get_address(&self, network: Network, address_type: AddressType) -> String
pub fn serialize(&self, network: Network, bip: Bip) -> SerializedExtendedKeys
Trait Implementations§
Source§impl Clone for MasterKeys
impl Clone for MasterKeys
Source§fn clone(&self) -> MasterKeys
fn clone(&self) -> MasterKeys
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MasterKeys
impl RefUnwindSafe for MasterKeys
impl Send for MasterKeys
impl Sync for MasterKeys
impl Unpin for MasterKeys
impl UnwindSafe for MasterKeys
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