Struct ethstore::SafeAccount[][src]

pub struct SafeAccount {
    pub id: [u8; 16],
    pub version: Version,
    pub address: Address,
    pub crypto: Crypto,
    pub filename: Option<String>,
    pub name: String,
    pub meta: String,
}

Account representation.

Fields

Account ID

Account version

Account address

Account private key derivation definition.

Account filename

Account name

Account metadata

Methods

impl SafeAccount
[src]

Create a new account

Create a new SafeAccount from the given json; if it was read from a file, the filename should be Some name. If it is as yet anonymous, then it can be left None.

Create a new SafeAccount from the given vault json; if it was read from a file, the filename should be Some name. If it is as yet anonymous, then it can be left None.

Create a new VaultKeyFile from the given self

Sign a message.

Decrypt a message.

Agree on shared key.

Derive public key.

Change account's password.

Check if password matches the account.

Trait Implementations

impl Debug for SafeAccount
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SafeAccount
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for SafeAccount
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SafeAccount

impl Sync for SafeAccount