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) (*ecdsa.PrivateKey, error) SignerFn(chainID uint64, account common.Address, password string) (SignerFn, error) PersonalSignFn(account common.Address, password string) (PersonalSignFn, error) UnsetKey(account common.Address, password string) Accounts() []common.Address AddPath(keystorePath string) error RemovePath(keystorePath string) Paths() []string }
func New ¶
func New(paths ...string) (EthKeyStore, error)
type KeyCache ¶
type KeyCache interface { SetPath(account common.Address, path string) (existing bool) UnsetPath(account common.Address) PrivateKey(account common.Address, password string) (*ecdsa.PrivateKey, error) SetPrivateKey(account common.Address, pk *ecdsa.PrivateKey) UnsetKey(account common.Address, password string) SignerFn(chainID uint64, account common.Address, password string) (SignerFn, error) PersonalSignFn(account common.Address, password string) (PersonalSignFn, error) }
func NewKeyCache ¶
func NewKeyCache() KeyCache
type PersonalSignFn ¶
func PrivateKeyPersonalSignFn ¶
func PrivateKeyPersonalSignFn(privKey *ecdsa.PrivateKey) (PersonalSignFn, error)
type WalletSpec ¶
type WalletSpec struct { Address string `json:"address"` ID string `json:"id"` Version int `json:"version"` Path string `json:"-"` }
func (*WalletSpec) AddressFromHex ¶
func (spec *WalletSpec) AddressFromHex() common.Address
Click to show internal directories.
Click to hide internal directories.