# 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>`

### `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>`

## Implementors

- `impl SecretStore for EthStore`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)