pub trait SecretStore: SimpleSecretStore {
Show 13 methods 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: &dyn 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 sign_with_secret(
        &self,
        secret: &OpaqueSecret,
        message: &Message
    ) -> Result<Signature, Error> { ... }
}
Expand description

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.

Provided methods

Signs a message with raw secret.

Implementors