Documentation ¶
Index ¶
- type Wallet
- func (m *Wallet) AccountNames() ([]string, error)
- func (m *Wallet) AccountsDir() string
- func (m *Wallet) CanUnlockAccounts() bool
- func (m *Wallet) ReadFileForAccount(accountName string, fileName string) ([]byte, error)
- func (m *Wallet) ReadPasswordForAccount(accountName string) (string, error)
- func (m *Wallet) WriteAccountToDisk(ctx context.Context, password string) (string, error)
- func (m *Wallet) WriteFileForAccount(ctx context.Context, accountName string, fileName string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct { Files map[string]map[string][]byte AccountPasswords map[string]string UnlockAccounts bool // contains filtered or unexported fields }
Wallet contains an in-memory, simulated wallet implementation.
func (*Wallet) ReadFileForAccount ¶
ReadFileForAccount --
func (*Wallet) ReadPasswordForAccount ¶
ReadPasswordForAccount --
func (*Wallet) WriteAccountToDisk ¶
WriteAccountToDisk --
Click to show internal directories.
Click to hide internal directories.