Documentation ¶
Index ¶
- type Wallet
- func (m *Wallet) AccountNames() ([]string, error)
- func (m *Wallet) AccountsDir() string
- func (m *Wallet) Exists() (bool, error)
- func (m *Wallet) InitializeKeymanager(_ context.Context, _ bool) (keymanager.IKeymanager, error)
- func (m *Wallet) Password() string
- func (m *Wallet) ReadEncryptedSeedFromDisk(_ context.Context) (io.ReadCloser, error)
- func (m *Wallet) ReadFileAtPath(_ context.Context, pathName, fileName string) ([]byte, error)
- func (m *Wallet) WriteEncryptedSeedToDisk(_ context.Context, encoded []byte) error
- func (m *Wallet) WriteFileAtPath(_ context.Context, pathName, 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 { InnerAccountsDir string Directories []string Files map[string]map[string][]byte EncryptedSeedFile []byte AccountPasswords map[string]string WalletPassword string UnlockAccounts bool // contains filtered or unexported fields }
Wallet contains an in-memory, simulated wallet implementation.
func (*Wallet) InitializeKeymanager ¶
func (m *Wallet) InitializeKeymanager(_ context.Context, _ bool) (keymanager.IKeymanager, error)
InitializeKeymanager --
func (*Wallet) ReadEncryptedSeedFromDisk ¶
ReadEncryptedSeedFromDisk --
func (*Wallet) ReadFileAtPath ¶
ReadFileAtPath --
func (*Wallet) WriteEncryptedSeedToDisk ¶
WriteEncryptedSeedToDisk --
Click to show internal directories.
Click to hide internal directories.