Trait ethstore::SecretStore[][src]

pub trait SecretStore: SimpleSecretStore {
    fn raw_secret(
        &self,
        account: &StoreAccountRef,
        password: &Password
    ) -> Result<OpaqueSecret, Error>;
fn import_presale(
        &self,
        vault: SecretVaultRef,
        json: &[u8],
        password: &Password
    ) -> Result<StoreAccountRef, Error>;
fn import_wallet(
        &self,
        vault: SecretVaultRef,
        json: &[u8],
        password: &Password,
        gen_id: bool
    ) -> Result<StoreAccountRef, Error>;
fn copy_account(
        &self,
        new_store: &SimpleSecretStore,
        new_vault: SecretVaultRef,
        account: &StoreAccountRef,
        password: &Password,
        new_password: &Password
    ) -> Result<(), Error>;
fn test_password(
        &self,
        account: &StoreAccountRef,
        password: &Password
    ) -> Result<bool, Error>;
fn public(
        &self,
        account: &StoreAccountRef,
        password: &Password
    ) -> 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) -> PathBuf;
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>; fn sign_with_secret(
        &self,
        secret: &OpaqueSecret,
        message: &Message
    ) -> Result<Signature, Error> { ... } }

Secret Store API

Required Methods

Returns a raw opaque Secret that can be later used to sign a message.

Imports presale wallet

Imports existing JSON wallet

Copies account between stores and vaults.

Checks if password matches given account.

Returns a public key for given account.

Returns uuid of an account.

Returns account's name.

Returns account's metadata.

Modifies account metadata.

Modifies account name.

Returns local path of the store.

Lists all found geth accounts.

Imports geth accounts to the store/vault.

Provided Methods

Signs a message with raw secret.

Implementors