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(ctx context.Context, skipMnemonicConfirm bool) (v2keymanager.IKeymanager, error)
- func (m *Wallet) Password() string
- func (m *Wallet) ReadEncryptedSeedFromDisk(ctx context.Context) (io.ReadCloser, error)
- func (m *Wallet) ReadFileAtPath(ctx context.Context, pathName string, fileName string) ([]byte, error)
- func (m *Wallet) SetPassword(newPass string)
- func (m *Wallet) WriteEncryptedSeedToDisk(ctx context.Context, encoded []byte) error
- func (m *Wallet) WriteFileAtPath(ctx context.Context, pathName 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 { 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(ctx context.Context, skipMnemonicConfirm bool) (v2keymanager.IKeymanager, error)
InitializeKeymanager --
func (*Wallet) ReadEncryptedSeedFromDisk ¶
ReadEncryptedSeedFromDisk --
func (*Wallet) ReadFileAtPath ¶
func (m *Wallet) ReadFileAtPath(ctx context.Context, pathName string, fileName string) ([]byte, error)
ReadFileAtPath --
func (*Wallet) SetPassword ¶
SetPassword sets a new password for the wallet.
func (*Wallet) WriteEncryptedSeedToDisk ¶
WriteEncryptedSeedToDisk --
Click to show internal directories.
Click to hide internal directories.