Versions in this module Expand all Collapse all v0 v0.0.1 May 19, 2021 Changes in this version + const AutoMigrate + const EthereumMessageHashPrefix + var AttemptToDeleteNonExistentKeyFromDB = errors.New("key is not present in DB") + var ErrKeyStoreLocked = errors.New("keystore is locked (HINT: did you forget to call keystore.Unlock?)") + var MatchingVRFKeyError = errors.New(`key with matching public key already stored in DB`) + func CheckSquashUpgrade(db *gorm.DB) error + func PromUpdateEthBalance(balance *assets.Eth, from common.Address) + type HeadTrackable interface + Connect func(head *models.Head) error + Disconnect func() + OnNewLongestChain func(ctx context.Context, head models.Head) + type InMemoryKeyStore = map[vrfkey.PublicKey]vrfkey.PrivateKey + type KeyStore struct + func InsecureKeyStoreGen(config *orm.Config) *KeyStore + func NewInsecureKeyStore(keyDir string) *KeyStore + func NewKeyStore(keyDir string, scryptParams utils.ScryptParams) *KeyStore + func StandardKeyStoreGen(config *orm.Config) *KeyStore + func (ks *KeyStore) Delete(address common.Address) error + func (ks *KeyStore) Export(address common.Address, newPassword string) ([]byte, error) + func (ks *KeyStore) GetAccountByAddress(address common.Address) (accounts.Account, error) + func (ks *KeyStore) GetAccounts() []accounts.Account + func (ks *KeyStore) HasAccountWithAddress(address common.Address) bool + func (ks *KeyStore) HasAccounts() bool + func (ks *KeyStore) Import(keyJSON []byte, oldPassword string) (accounts.Account, error) + func (ks *KeyStore) NewAccount() (accounts.Account, error) + func (ks *KeyStore) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) + func (ks *KeyStore) Unlock(password string) error + type KeyStoreGenerator func(*orm.Config) *KeyStore + type KeyStoreInterface interface + Accounts func() []accounts.Account + Delete func(address common.Address) error + Export func(address common.Address, newPassword string) ([]byte, error) + GetAccountByAddress func(common.Address) (accounts.Account, error) + GetAccounts func() []accounts.Account + HasAccountWithAddress func(common.Address) bool + HasAccounts func() bool + Import func(keyJSON []byte, oldPassword string) (accounts.Account, error) + NewAccount func() (accounts.Account, error) + SignTx func(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) + Unlock func(password string) error + Wallets func() []accounts.Wallet + type NotifyNewEthTx interface + Trigger func() + type Store struct + AdvisoryLocker postgres.AdvisoryLocker + Clock utils.AfterNower + Config *orm.Config + EthClient eth.Client + KeyStore KeyStoreInterface + NotifyNewEthTx NotifyNewEthTx + OCRKeyStore *offchainreporting.KeyStore + VRFKeyStore *VRFKeyStore + func NewInsecureStore(config *orm.Config, ethClient eth.Client, ...) (*Store, error) + func NewStore(config *orm.Config, ethClient eth.Client, advisoryLock postgres.AdvisoryLocker, ...) (*Store, error) + func (s *Store) ArchiveKey(address common.Address) error + func (s *Store) AuthorizedUserWithSession(sessionID string) (models.User, error) + func (s *Store) Close() error + func (s *Store) DeleteKey(address common.Address) error + func (s *Store) ImportKey(keyJSON []byte, oldPassword string) error + func (s *Store) Start() error + func (s *Store) SyncDiskKeyStoreToDB() error + func (s *Store) Unscoped() *Store + type VRFKeyStore struct + func NewVRFKeyStore(store *Store) *VRFKeyStore + func (ks *VRFKeyStore) Archive(key vrfkey.PublicKey) (err error) + func (ks *VRFKeyStore) CreateKey(phrase string) (vrfkey.PublicKey, error) + func (ks *VRFKeyStore) CreateWeakInMemoryEncryptedKeyXXXTestingOnly(phrase string) (*vrfkey.EncryptedVRFKey, error) + func (ks *VRFKeyStore) Delete(key vrfkey.PublicKey) (err error) + func (ks *VRFKeyStore) Forget(k vrfkey.PublicKey) error + func (ks *VRFKeyStore) GenerateProof(k vrfkey.PublicKey, i vrf.PreSeedData) (vrf.MarshaledOnChainResponse, error) + func (ks *VRFKeyStore) Get(k ...vrfkey.PublicKey) ([]*vrfkey.EncryptedVRFKey, error) + func (ks *VRFKeyStore) GetSpecificKey(k vrfkey.PublicKey) (*vrfkey.EncryptedVRFKey, error) + func (ks *VRFKeyStore) Import(keyjson []byte, auth string) error + func (ks *VRFKeyStore) ListKeys() (publicKeys []*vrfkey.PublicKey, err error) + func (ks *VRFKeyStore) Store(key *vrfkey.PrivateKey, phrase string, scryptParams utils.ScryptParams) error + func (ks *VRFKeyStore) StoreInMemoryXXXTestingOnly(key *vrfkey.PrivateKey) + func (ks *VRFKeyStore) Unlock(phrase string) (keysUnlocked []vrfkey.PublicKey, merr error)