Documentation ¶
Index ¶
- type Wallet
- func (w *Wallet) AccountNames() ([]string, error)
- func (w *Wallet) AccountsDir() string
- func (w *Wallet) Exists() (bool, error)
- func (w *Wallet) InitializeKeymanager(_ context.Context) (keymanager.IKeymanager, error)
- func (w *Wallet) Password() string
- func (w *Wallet) ReadFileAtPath(_ context.Context, pathName, fileName string) ([]byte, error)
- func (w *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 (w *Wallet) InitializeKeymanager(_ context.Context) (keymanager.IKeymanager, error)
InitializeKeymanager --
func (*Wallet) ReadFileAtPath ¶
ReadFileAtPath --
Click to show internal directories.
Click to hide internal directories.