mock

package
v1.0.0-beta.0.rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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) AccountNames

func (m *Wallet) AccountNames() ([]string, error)

AccountNames --

func (*Wallet) AccountsDir

func (m *Wallet) AccountsDir() string

AccountsDir --

func (*Wallet) Exists

func (m *Wallet) Exists() (bool, error)

Exists --

func (*Wallet) InitializeKeymanager

func (m *Wallet) InitializeKeymanager(_ context.Context, _ bool) (keymanager.IKeymanager, error)

InitializeKeymanager --

func (*Wallet) Password

func (m *Wallet) Password() string

Password --

func (*Wallet) ReadEncryptedSeedFromDisk

func (m *Wallet) ReadEncryptedSeedFromDisk(_ context.Context) (io.ReadCloser, error)

ReadEncryptedSeedFromDisk --

func (*Wallet) ReadFileAtPath

func (m *Wallet) ReadFileAtPath(_ context.Context, pathName, fileName string) ([]byte, error)

ReadFileAtPath --

func (*Wallet) WriteEncryptedSeedToDisk

func (m *Wallet) WriteEncryptedSeedToDisk(_ context.Context, encoded []byte) error

WriteEncryptedSeedToDisk --

func (*Wallet) WriteFileAtPath

func (m *Wallet) WriteFileAtPath(_ context.Context, pathName, fileName string, data []byte) error

WriteFileAtPath --

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL