Documentation
¶
Overview ¶
package mock
lint:nopanic -- Test / mock code, allowed to panic.
Index ¶
- type Wallet
- func (w *Wallet) AccountNames() ([]string, error)
- func (w *Wallet) AccountsDir() string
- func (w *Wallet) Dir() string
- func (w *Wallet) Exists() (bool, error)
- func (_ *Wallet) InitializeKeymanager(_ context.Context, _ iface.InitKeymanagerConfig) (keymanager.IKeymanager, error)
- func (w *Wallet) KeymanagerKind() keymanager.Kind
- 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) (bool, 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
HasWriteFileError bool
WalletDir string
Kind keymanager.Kind
// contains filtered or unexported fields
}
Wallet contains an in-memory, simulated wallet implementation.
func (*Wallet) InitializeKeymanager ¶
func (_ *Wallet) InitializeKeymanager(_ context.Context, _ iface.InitKeymanagerConfig) (keymanager.IKeymanager, error)
InitializeKeymanager --
func (*Wallet) ReadFileAtPath ¶
ReadFileAtPath --
Click to show internal directories.
Click to hide internal directories.