Versions in this module Expand all Collapse all v2 v2.2.1 Apr 25, 2024 Changes in this version + func DelegatedFromEthAddr(addr common.Address) (address.Address, error) + func DeriveAddrFromPk(pk *ecdsa.PrivateKey) (common.Address, address.Address, error) + func DeriveAddrFromPkString(pk string) (common.Address, address.Address, error) + func DeriveAddressFromPk(pk *ecdsa.PrivateKey) (common.Address, error) + func IsZeroAddress(address common.Address) bool + func KeyStore() *keystore.KeyStore + func NewAccountsStore(filename string) error + func NewAgentStore(filename string) error + func NewBackupsStore(filename string) error + func NewKeyStore(keydir string) + func NewKeyStoreLegacy(filename string) error + func TruncateAddr(addr string) string + type AccountsStorage struct + func AccountsStore() *AccountsStorage + func (a *AccountsStorage) GetAddrs(key string) (common.Address, address.Address, error) + type AgentStorage struct + func AgentStore() *AgentStorage + type BackupsStorage struct + func BackupsStore() *BackupsStorage + func (a *BackupsStorage) Invalidate() + type ErrKeyNotFound struct + Key string + func (e *ErrKeyNotFound) Error() string + type KeyStorage struct + type KeyStorageLegacy struct + func KeyStoreLegacy() *KeyStorageLegacy + func (s *KeyStorageLegacy) GetAddrs(key KeyType) (common.Address, address.Address, error) + func (s *KeyStorageLegacy) GetPrivate(key KeyType) (*ecdsa.PrivateKey, error) + func (s *KeyStorageLegacy) SetKey(key KeyType, pk *ecdsa.PrivateKey) error + type KeyType string + const OperatorKey + const OwnerKey + const RequestKey + type Storage struct + func NewStorage(filename string, defaultMap map[string]string, writable bool) (*Storage, error) + func (s *Storage) AccountNames() []string + func (s *Storage) Delete(key string) error + func (s *Storage) Get(key string) (string, error) + func (s *Storage) Set(key, value string) error + type StorageData map[string]string