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 ethcmn.Address, password string) (*ecdsa.PrivateKey, error) SignerFn(chainID uint64, account ethcmn.Address, password string) (SignerFn, error) PersonalSignFn(account ethcmn.Address, password string) (PersonalSignFn, error) UnsetKey(account ethcmn.Address, password string) Accounts() []ethcmn.Address AddPath(keystorePath string) error RemovePath(keystorePath string) Paths() []string }
type KeyCache ¶
type KeyCache interface { SetPath(account ethcmn.Address, path string) (existing bool) UnsetPath(account ethcmn.Address) PrivateKey(account ethcmn.Address, password string) (*ecdsa.PrivateKey, error) SetPrivateKey(account ethcmn.Address, pk *ecdsa.PrivateKey) UnsetKey(account ethcmn.Address, password string) SignerFn(chainID uint64, account ethcmn.Address, password string) (SignerFn, error) PersonalSignFn(account ethcmn.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() ethcmn.Address
Click to show internal directories.
Click to hide internal directories.