Struct ethcore::account_provider::AccountProvider[][src]

pub struct AccountProvider { /* fields omitted */ }

Account management. Responsible for unlocking accounts.

Methods

impl AccountProvider
[src]

Creates new account provider.

Creates not disk backed provider.

Creates new random account.

Creates new random account and returns address and public key

Inserts new account into underlying store. Does not unlock account!

Generates new derived account based on the existing one If password is not provided, account must be unlocked New account will be created with the same password (if save: true)

Import a new presale wallet.

Import a new wallet.

Checks whether an account with a given address is present.

Returns addresses of all accounts.

Returns addresses of hardware accounts.

Get a list of paths to locked hardware wallets

Provide a pin to a locked hardware wallet on USB path to unlock it

Sets addresses of accounts exposed for unknown dapps. None means that all accounts will be visible. If not None or empty it will also override default account.

Gets addresses of accounts exposed for unknown dapps. None means that all accounts will be visible.

Sets a default account for unknown dapps. This account will always be returned as the first one.

Gets a default account for new dapps Will return zero address in case the default is not set and there are no accounts configured.

Gets a list of dapps recently requesting accounts.

Marks dapp as recently used.

Gets addresses visible for given dapp.

Returns default account for particular dapp falling back to other allowed accounts if necessary.

Sets default address for given dapp. Does not alter dapp addresses, but this account will always be returned as the first one.

Sets addresses visible for given dapp. If None - falls back to dapps addresses If not None and not empty it will also override default account.

Returns each address along with metadata.

Returns each address along with metadata.

Returns each address along with metadata.

Removes and address from the address book

Returns each account along with name and meta.

Returns each hardware account along with name and meta.

Returns each hardware account along with name and meta.

Returns each account along with name and meta.

Returns account public key.

Returns each account along with name and meta.

Returns each account along with name and meta.

Returns true if the password for account is password. false if not.

Permanently removes an account.

Changes the password of account from password to new_password. Fails if incorrect password given.

Exports an account for given address.

Unlocks account permanently.

Unlocks account temporarily (for one signing).

Unlocks account temporarily with a timeout.

Checks if given account is unlocked

Checks if given account is unlocked permanently

Signs the message. If password is not provided the account must be unlocked.

Signs message using the derived secret. If password is not provided the account must be unlocked.

Signs given message with supplied token. Returns a token to use in next signing within this session.

Decrypts a message with given token. Returns a token to use in next operation for this account.

Decrypts a message. If password is not provided the account must be unlocked.

Agree on shared key.

Important traits for Vec<u8>

Returns the underlying SecretStore reference if one exists.

Returns the underlying SecretStore reference if one exists.

Create new vault.

Open existing vault.

Close previously opened vault.

List all vaults

List all currently opened vaults

Change vault password.

Change vault of the given address.

Get vault metadata string.

Set vault metadata string.

Sign message with hardware wallet.

Sign transaction with hardware wallet.

Auto Trait Implementations

impl Send for AccountProvider

impl Sync for AccountProvider