pub struct DefaultLCProvider<'a, C, K> where
C: NodeClient + 'a,
K: Keychain + 'a, { /* private fields */ }
Implementations
sourceimpl<'a, C, K> DefaultLCProvider<'a, C, K> where
C: NodeClient + 'a,
K: Keychain + 'a,
impl<'a, C, K> DefaultLCProvider<'a, C, K> where
C: NodeClient + 'a,
K: Keychain + 'a,
Trait Implementations
sourceimpl<'a, C, K> WalletLCProvider<'a, C, K> for DefaultLCProvider<'a, C, K> where
C: NodeClient + 'a,
K: Keychain + 'a,
impl<'a, C, K> WalletLCProvider<'a, C, K> for DefaultLCProvider<'a, C, K> where
C: NodeClient + 'a,
K: Keychain + 'a,
sourcefn set_top_level_directory(&mut self, dir: &str) -> Result<(), Error>
fn set_top_level_directory(&mut self, dir: &str) -> Result<(), Error>
Sets the top level system wallet directory default is assumed to be ~/.epic/main/wallet_data (or floonet equivalent) Read more
sourcefn get_top_level_directory(&self) -> Result<String, Error>
fn get_top_level_directory(&self) -> Result<String, Error>
Sets the top level system wallet directory default is assumed to be ~/.epic/main/wallet_data (or floonet equivalent) Read more
sourcefn create_config(
&self,
chain_type: &ChainTypes,
file_name: &str,
wallet_config: Option<WalletConfig>,
logging_config: Option<LoggingConfig>,
tor_config: Option<TorConfig>
) -> Result<(), Error>
fn create_config(
&self,
chain_type: &ChainTypes,
file_name: &str,
wallet_config: Option<WalletConfig>,
logging_config: Option<LoggingConfig>,
tor_config: Option<TorConfig>
) -> Result<(), Error>
Output a epic-wallet.toml file into the current top-level system wallet directory
fn create_wallet(
&mut self,
_name: Option<&str>,
mnemonic: Option<ZeroingString>,
mnemonic_length: usize,
password: ZeroingString,
test_mode: bool
) -> Result<(), Error>
fn open_wallet(
&mut self,
_name: Option<&str>,
password: ZeroingString,
create_mask: bool,
use_test_rng: bool
) -> Result<Option<SecretKey>, Error>
fn close_wallet(&mut self, _name: Option<&str>) -> Result<(), Error>
sourcefn wallet_exists(&self, _name: Option<&str>) -> Result<bool, Error>
fn wallet_exists(&self, _name: Option<&str>) -> Result<bool, Error>
whether a wallet exists at the given directory
sourcefn get_mnemonic(
&self,
_name: Option<&str>,
password: ZeroingString
) -> Result<ZeroingString, Error>
fn get_mnemonic(
&self,
_name: Option<&str>,
password: ZeroingString
) -> Result<ZeroingString, Error>
return mnemonic of given wallet
sourcefn validate_mnemonic(&self, mnemonic: ZeroingString) -> Result<(), Error>
fn validate_mnemonic(&self, mnemonic: ZeroingString) -> Result<(), Error>
Check whether a provided mnemonic string is valid
sourcefn recover_from_mnemonic(
&self,
mnemonic: ZeroingString,
password: ZeroingString
) -> Result<(), Error>
fn recover_from_mnemonic(
&self,
mnemonic: ZeroingString,
password: ZeroingString
) -> Result<(), Error>
Recover a seed from phrase, without destroying existing data should back up seed Read more
sourcefn change_password(
&self,
_name: Option<&str>,
old: ZeroingString,
new: ZeroingString
) -> Result<(), Error>
fn change_password(
&self,
_name: Option<&str>,
old: ZeroingString,
new: ZeroingString
) -> Result<(), Error>
changes password
sourcefn wallet_inst(
&mut self
) -> Result<&mut Box<dyn WalletBackend<'a, C, K> + 'a>, Error>
fn wallet_inst(
&mut self
) -> Result<&mut Box<dyn WalletBackend<'a, C, K> + 'a>, Error>
return wallet instance
Auto Trait Implementations
impl<'a, C, K> !RefUnwindSafe for DefaultLCProvider<'a, C, K>
impl<'a, C, K> Send for DefaultLCProvider<'a, C, K>
impl<'a, C, K> Sync for DefaultLCProvider<'a, C, K>
impl<'a, C, K> Unpin for DefaultLCProvider<'a, C, K> where
C: Unpin,
impl<'a, C, K> !UnwindSafe for DefaultLCProvider<'a, C, K>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more