pub trait CryptoWalletBuilder<T>where
T: CryptoWallet + Clone,{
// Required methods
fn new() -> Self;
fn build(&self) -> Result<T, T::ErrorType>;
fn master_hd_key(&mut self, master_hd_key: HDKey) -> &mut Self;
fn mnemonic_seed(&mut self, mnemonic_seed: Seed) -> &mut Self;
fn address_format(&mut self, address_format: T::AddressFormat) -> &mut Self;
fn hd_path_builder(&mut self, hd_path_builder: HDPathBuilder) -> &mut Self;
fn network_type(&mut self, network_type: T::NetworkType) -> &mut Self;
}
Expand description
Provides a common interface for building a CryptoWallet.
Required Methods§
sourcefn new() -> Self
fn new() -> Self
Constructs a new CryptoWalletBuilder.
sourcefn build(&self) -> Result<T, T::ErrorType>
fn build(&self) -> Result<T, T::ErrorType>
Builds a CryptoWallet from the CryptoWalletBuilder.
sourcefn master_hd_key(&mut self, master_hd_key: HDKey) -> &mut Self
fn master_hd_key(&mut self, master_hd_key: HDKey) -> &mut Self
Specifies the master HD key for the CryptoWalletBuilder.
sourcefn mnemonic_seed(&mut self, mnemonic_seed: Seed) -> &mut Self
fn mnemonic_seed(&mut self, mnemonic_seed: Seed) -> &mut Self
Specifies the mnemonic seed for the CryptoWalletBuilder.
sourcefn address_format(&mut self, address_format: T::AddressFormat) -> &mut Self
fn address_format(&mut self, address_format: T::AddressFormat) -> &mut Self
Specifies the address format for the CryptoWalletBuilder.
sourcefn hd_path_builder(&mut self, hd_path_builder: HDPathBuilder) -> &mut Self
fn hd_path_builder(&mut self, hd_path_builder: HDPathBuilder) -> &mut Self
Specifies the[] HD path builder]HDPathBuilder for the CryptoWalletBuilder.
sourcefn network_type(&mut self, network_type: T::NetworkType) -> &mut Self
fn network_type(&mut self, network_type: T::NetworkType) -> &mut Self
Specifies the network type for the CryptoWalletBuilder.