pub struct BitcoinWallet {
pub network: Network,
pub derivation_path: DerivationPath,
pub address_type: AddressType,
/* private fields */
}Fields§
§network: Network§derivation_path: DerivationPath§address_type: AddressTypeImplementations§
Source§impl BitcoinWallet
impl BitcoinWallet
pub fn new( mnemonic: &str, network: Network, address_type: AddressType, ) -> Result<Self>
pub fn get_account( &self, secp: &Secp256k1<All>, index: u32, ) -> Result<(PrivateKey, Address)>
Trait Implementations§
Source§impl Clone for BitcoinWallet
impl Clone for BitcoinWallet
Source§fn clone(&self) -> BitcoinWallet
fn clone(&self) -> BitcoinWallet
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 BitcoinWallet
impl RefUnwindSafe for BitcoinWallet
impl Send for BitcoinWallet
impl Sync for BitcoinWallet
impl Unpin for BitcoinWallet
impl UnwindSafe for BitcoinWallet
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