keystore

package
v0.0.0-...-8e94ecf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthKeyStore

type EthKeyStore interface {
	PrivateKey(account common.Address, password string) (key *ecdsa.PrivateKey, ok bool)
	SignerFn(account common.Address, password string) bind.SignerFn
	UnsetKey(account common.Address, password string)
	Accounts() []common.Address
	AddPath(keybase string) error
	RemovePath(keybase string)
	Paths() []string
}

func New

func New(paths ...string) (EthKeyStore, error)

type WalletSpec

type WalletSpec struct {
	Address string `json:"address"`
	ID      string `json:"id"`
	Version int    `json:"version"`
	Path    string `json:"-"`
}

func (*WalletSpec) HexToAddress

func (spec *WalletSpec) HexToAddress() common.Address

Jump to

Keyboard shortcuts

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