Struct ethstore::EthMultiStore
[−]
[src]
pub struct EthMultiStore { /* fields omitted */ }
Similar to EthStore
but may store many accounts (with different passwords) for the same Address
Methods
impl EthMultiStore
[src]
fn open(directory: Box<KeyDirectory>) -> Result<Self, Error>
fn open_with_iterations(directory: Box<KeyDirectory>,
iterations: u32)
-> Result<Self, Error>
iterations: u32)
-> Result<Self, Error>
Trait Implementations
impl SimpleSecretStore for EthMultiStore
[src]
fn insert_account(&self,
vault: SecretVaultRef,
secret: Secret,
password: &str)
-> Result<StoreAccountRef, Error>
vault: SecretVaultRef,
secret: Secret,
password: &str)
-> Result<StoreAccountRef, Error>
fn accounts(&self) -> Result<Vec<StoreAccountRef>, Error>
fn remove_account(&self,
account_ref: &StoreAccountRef,
password: &str)
-> Result<(), Error>
account_ref: &StoreAccountRef,
password: &str)
-> Result<(), Error>
fn change_password(&self,
account_ref: &StoreAccountRef,
old_password: &str,
new_password: &str)
-> Result<(), Error>
account_ref: &StoreAccountRef,
old_password: &str,
new_password: &str)
-> Result<(), Error>
fn sign(&self,
account: &StoreAccountRef,
password: &str,
message: &Message)
-> Result<Signature, Error>
account: &StoreAccountRef,
password: &str,
message: &Message)
-> Result<Signature, Error>
fn decrypt(&self,
account: &StoreAccountRef,
password: &str,
shared_mac: &[u8],
message: &[u8])
-> Result<Vec<u8>, Error>
account: &StoreAccountRef,
password: &str,
shared_mac: &[u8],
message: &[u8])
-> Result<Vec<u8>, Error>
fn create_vault(&self, name: &str, password: &str) -> Result<(), Error>
Create new vault with given password
fn open_vault(&self, name: &str, password: &str) -> Result<(), Error>
Open vault with given password
fn close_vault(&self, name: &str) -> Result<(), Error>
Close vault
fn change_vault_password(&self,
name: &str,
password: &str,
new_password: &str)
-> Result<(), Error>
name: &str,
password: &str,
new_password: &str)
-> Result<(), Error>
Change vault password