Trait ethstore::SimpleSecretStore
[−]
[src]
pub trait SimpleSecretStore: Send + Sync { fn insert_account(&self,
vault: SecretVaultRef,
secret: Secret,
password: &str)
-> Result<StoreAccountRef, Error>; fn change_password(&self,
account: &StoreAccountRef,
old_password: &str,
new_password: &str)
-> Result<(), Error>; fn remove_account(&self,
account: &StoreAccountRef,
password: &str)
-> Result<(), Error>; fn sign(&self,
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>; fn accounts(&self) -> Result<Vec<StoreAccountRef>, Error>; fn create_vault(&self, name: &str, password: &str) -> Result<(), Error>; fn open_vault(&self, name: &str, password: &str) -> Result<(), Error>; fn close_vault(&self, name: &str) -> Result<(), Error>; fn change_vault_password(&self,
name: &str,
password: &str,
new_password: &str)
-> Result<(), Error>; }
Required Methods
fn insert_account(&self,
vault: SecretVaultRef,
secret: Secret,
password: &str)
-> Result<StoreAccountRef, Error>
vault: SecretVaultRef,
secret: Secret,
password: &str)
-> Result<StoreAccountRef, Error>
fn change_password(&self,
account: &StoreAccountRef,
old_password: &str,
new_password: &str)
-> Result<(), Error>
account: &StoreAccountRef,
old_password: &str,
new_password: &str)
-> Result<(), Error>
fn remove_account(&self,
account: &StoreAccountRef,
password: &str)
-> Result<(), Error>
account: &StoreAccountRef,
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 accounts(&self) -> Result<Vec<StoreAccountRef>, 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
Implementors
impl SimpleSecretStore for EthStore
impl SimpleSecretStore for EthMultiStore