mock

package
v1.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: GPL-3.0 Imports: 7 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
	UnlockAccounts    bool
	WalletPassword    string
	// 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) ListDirs

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

ListDirs --

func (*Wallet) Password

func (m *Wallet) Password() string

Password --

func (*Wallet) ReadEncryptedSeedFromDisk

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

ReadEncryptedSeedFromDisk --

func (*Wallet) ReadFileAtPath

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

ReadFileAtPath --

func (*Wallet) ReadPasswordFromDisk

func (m *Wallet) ReadPasswordFromDisk(ctx context.Context, passwordFileName string) (string, error)

ReadPasswordFromDisk --

func (*Wallet) WriteEncryptedSeedToDisk

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

WriteEncryptedSeedToDisk --

func (*Wallet) WriteFileAtPath

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

WriteFileAtPath --

func (*Wallet) WritePasswordToDisk

func (m *Wallet) WritePasswordToDisk(ctx context.Context, passwordFileName string, password string) error

WritePasswordToDisk --

Jump to

Keyboard shortcuts

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