Trait ethstore::SecretStore
[−]
[src]
pub trait SecretStore: SimpleSecretStore { fn import_presale(&self,
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>; fn import_wallet(&self,
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>; fn copy_account(&self,
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>; fn move_account(&self,
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>; fn test_password(&self,
account: &StoreAccountRef,
password: &str)
-> Result<bool, Error>; fn public(&self,
account: &StoreAccountRef,
password: &str)
-> Result<Public, Error>; fn uuid(&self, account: &StoreAccountRef) -> Result<Uuid, Error>; fn name(&self, account: &StoreAccountRef) -> Result<String, Error>; fn meta(&self, account: &StoreAccountRef) -> Result<String, Error>; fn set_name(&self, account: &StoreAccountRef, name: String) -> Result<(), Error>; fn set_meta(&self, account: &StoreAccountRef, meta: String) -> Result<(), Error>; fn local_path(&self) -> String; fn list_geth_accounts(&self, testnet: bool) -> Vec<Address>; fn import_geth_accounts(&self,
vault: SecretVaultRef,
desired: Vec<Address>,
testnet: bool)
-> Result<Vec<StoreAccountRef>, Error>; }
Required Methods
fn import_presale(&self,
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>
fn import_wallet(&self,
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>
vault: SecretVaultRef,
json: &[u8],
password: &str)
-> Result<StoreAccountRef, Error>
fn copy_account(&self,
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>
fn move_account(&self,
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>
new_store: &SimpleSecretStore,
new_vault: SecretVaultRef,
account: &StoreAccountRef,
password: &str,
new_password: &str)
-> Result<(), Error>
fn test_password(&self,
account: &StoreAccountRef,
password: &str)
-> Result<bool, Error>
account: &StoreAccountRef,
password: &str)
-> Result<bool, Error>
fn public(&self,
account: &StoreAccountRef,
password: &str)
-> Result<Public, Error>
account: &StoreAccountRef,
password: &str)
-> Result<Public, Error>
fn uuid(&self, account: &StoreAccountRef) -> Result<Uuid, Error>
fn name(&self, account: &StoreAccountRef) -> Result<String, Error>
fn meta(&self, account: &StoreAccountRef) -> Result<String, Error>
fn set_name(&self, account: &StoreAccountRef, name: String) -> Result<(), Error>
fn set_meta(&self, account: &StoreAccountRef, meta: String) -> Result<(), Error>
fn local_path(&self) -> String
fn list_geth_accounts(&self, testnet: bool) -> Vec<Address>
fn import_geth_accounts(&self,
vault: SecretVaultRef,
desired: Vec<Address>,
testnet: bool)
-> Result<Vec<StoreAccountRef>, Error>
vault: SecretVaultRef,
desired: Vec<Address>,
testnet: bool)
-> Result<Vec<StoreAccountRef>, Error>
Implementors
impl SecretStore for EthStore