Documentation ¶
Index ¶
- type Wallet
- func (m *Wallet) AccountNames() ([]string, error)
- func (m *Wallet) AccountsDir() string
- func (m *Wallet) ListDirs() ([]string, 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) ReadPasswordFromDisk(ctx context.Context, passwordFileName string) (string, error)
- func (m *Wallet) WriteEncryptedSeedToDisk(ctx context.Context, encoded []byte) error
- func (m *Wallet) WriteFileAtPath(ctx context.Context, pathName string, fileName string, data []byte) error
- func (m *Wallet) WritePasswordToDisk(ctx context.Context, passwordFileName string, password string) 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 UnlockAccounts bool WalletPassword string // contains filtered or unexported fields }
Wallet contains an in-memory, simulated wallet implementation.
func (*Wallet) ReadEncryptedSeedFromDisk ¶
ReadEncryptedSeedFromDisk --
func (*Wallet) ReadFileAtPath ¶
func (m *Wallet) ReadFileAtPath(ctx context.Context, pathName string, fileName string) ([]byte, error)
ReadFileAtPath --
func (*Wallet) ReadPasswordFromDisk ¶
ReadPasswordFromDisk --
func (*Wallet) WriteEncryptedSeedToDisk ¶
WriteEncryptedSeedToDisk --
Click to show internal directories.
Click to hide internal directories.