ekm

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: GPL-3.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantDecrypt = errors.New("can't decrypt stored wallet, wrong password?")

Functions

func NewETHKeyManagerSigner

func NewETHKeyManagerSigner(logger *zap.Logger, db basedb.Database, network networkconfig.NetworkConfig, builderProposals bool, encryptionKey string) (spectypes.KeyManager, error)

NewETHKeyManagerSigner returns a new instance of ethKeyManagerSigner

Types

type Storage added in v0.4.0

type Storage interface {
	registry.RegistryStore
	core.Storage
	core.SlashingStore

	RemoveHighestAttestation(pubKey []byte) error
	RemoveHighestProposal(pubKey []byte) error
	SetEncryptionKey(newKey string) error
	ListAccountsTxn(r basedb.Reader) ([]core.ValidatorAccount, error)
	SaveAccountTxn(rw basedb.ReadWriter, account core.ValidatorAccount) error

	BeaconNetwork() beacon.BeaconNetwork
}

Storage represents the interface for ssv node storage

func NewSignerStorage added in v0.4.0

func NewSignerStorage(db basedb.Database, network beacon.BeaconNetwork, logger *zap.Logger) Storage

type StorageProvider added in v1.1.0

type StorageProvider interface {
	ListAccounts() ([]core.ValidatorAccount, error)
	RetrieveHighestAttestation(pubKey []byte) (*phase0.AttestationData, bool, error)
	RetrieveHighestProposal(pubKey []byte) (phase0.Slot, bool, error)
	BumpSlashingProtection(pubKey []byte) error
}

StorageProvider provides the underlying KeyManager storage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL