Versions in this module Expand all Collapse all v0 v0.3.0 Dec 25, 2017 Changes in this version + var ErrWalletIsEmpty = errors.New("Keystore does not have any wallets") + var ErrWalletNoAccount = errors.New("Wallet does not have any account") + var ErrWalletNotOpen = errors.New("Wallet is not open") + func LoadKeys(keystore, passphrase string) (*ecdsa.PrivateKey, error) + type EthConfig struct + Keystore string + Passphrase string + func (c *EthConfig) LoadKey() (*ecdsa.PrivateKey, error) + type Identity interface + GetPrivateKey func() (*ecdsa.PrivateKey, error) + Import func(json []byte, passphrase string) error + ImportECDSA func(key *ecdsa.PrivateKey, passphrase string) error + New func(passphrase string) error + Open func(passphrase string) error + func NewIdentity(keydir string) Identity + type KeyOpener interface + GetKey func() (*ecdsa.PrivateKey, error) + GetPassPhraser func() PassPhraser + OpenKeystore func() (bool, error) + func DefaultKeyOpener(p Printer, keyDir, passPhrase string) (KeyOpener, error) + func NewKeyOpener(keyDir string, pf PassPhraser) KeyOpener + type KeyStorager interface + KeyStore func() string + PassPhrase func() string + type PassPhraser interface + GetPassPhrase func() (string, error) + func NewInteractivePassPhraser() PassPhraser + func NewStaticPassPhraser(p string) PassPhraser + type Printer interface + Printf func(format string, i ...interface{}) + func NewFmtPrinter() Printer + func NewSilentPrinter() Printer