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§

source

fn new() -> Self

Constructs a new CryptoWalletBuilder.

source

fn build(&self) -> Result<T, T::ErrorType>

Builds a CryptoWallet from the CryptoWalletBuilder.

source

fn master_hd_key(&mut self, master_hd_key: HDKey) -> &mut Self

Specifies the master HD key for the CryptoWalletBuilder.

source

fn mnemonic_seed(&mut self, mnemonic_seed: Seed) -> &mut Self

Specifies the mnemonic seed for the CryptoWalletBuilder.

source

fn address_format(&mut self, address_format: T::AddressFormat) -> &mut Self

Specifies the address format for the CryptoWalletBuilder.

source

fn hd_path_builder(&mut self, hd_path_builder: HDPathBuilder) -> &mut Self

Specifies the[] HD path builder]HDPathBuilder for the CryptoWalletBuilder.

source

fn network_type(&mut self, network_type: T::NetworkType) -> &mut Self

Specifies the network type for the CryptoWalletBuilder.

Implementors§