Versions in this module Expand all Collapse all v2 v2.0.1 Oct 5, 2021 Changes in this version + var ProtectionDbFileName = "validator.db" + type AttestationRecord struct + PubKey [48]byte + SigningRoot [32]byte + Source types.Epoch + Target types.Epoch + type Config struct + InitialMMapSize int + PubKeys [][48]byte + type Proposal struct + SigningRoot []byte + Slot types.Slot + type ProposalHistoryForPubkey struct + Proposals []Proposal + type QueuedAttestationRecords struct + func NewQueuedAttestationRecords() *QueuedAttestationRecords + func (p *QueuedAttestationRecords) Append(ar *AttestationRecord) + func (p *QueuedAttestationRecords) Flush() []*AttestationRecord + func (p *QueuedAttestationRecords) Len() int + type SlashingKind int + const DoubleVote + const NotSlashable + const SurroundedVote + const SurroundingVote + type Store struct + func NewKVStore(ctx context.Context, dirPath string, config *Config) (*Store, error) + func (s *Store) AttestationHistoryForPubKey(ctx context.Context, pubKey [48]byte) ([]*AttestationRecord, error) + func (s *Store) AttestedPublicKeys(ctx context.Context) ([][48]byte, error) + func (s *Store) Backup(ctx context.Context, outputDir string, permissionOverride bool) error + func (s *Store) CheckSlashableAttestation(ctx context.Context, pubKey [48]byte, signingRoot [32]byte, ...) (SlashingKind, error) + func (s *Store) ClearDB() error + func (s *Store) Close() error + func (s *Store) DatabasePath() string + func (s *Store) EIPImportBlacklistedPublicKeys(ctx context.Context) ([][48]byte, error) + func (s *Store) GenesisValidatorsRoot(ctx context.Context) ([]byte, error) + func (s *Store) GraffitiOrderedIndex(ctx context.Context, fileHash [32]byte) (uint64, error) + func (s *Store) HighestSignedProposal(ctx context.Context, publicKey [48]byte) (types.Slot, bool, error) + func (s *Store) LowestSignedProposal(ctx context.Context, publicKey [48]byte) (types.Slot, bool, error) + func (s *Store) LowestSignedSourceEpoch(ctx context.Context, publicKey [48]byte) (types.Epoch, bool, error) + func (s *Store) LowestSignedTargetEpoch(ctx context.Context, publicKey [48]byte) (types.Epoch, bool, error) + func (s *Store) ProposalHistoryForPubKey(ctx context.Context, publicKey [48]byte) ([]*Proposal, error) + func (s *Store) ProposalHistoryForSlot(ctx context.Context, publicKey [48]byte, slot types.Slot) ([32]byte, bool, error) + func (s *Store) ProposedPublicKeys(ctx context.Context) ([][48]byte, error) + func (s *Store) PruneAttestations(ctx context.Context) error + func (s *Store) RunDownMigrations(ctx context.Context) error + func (s *Store) RunUpMigrations(ctx context.Context) error + func (s *Store) SaveAttestationForPubKey(ctx context.Context, pubKey [48]byte, signingRoot [32]byte, ...) error + func (s *Store) SaveAttestationsForPubKey(ctx context.Context, pubKey [48]byte, signingRoots [][32]byte, ...) error + func (s *Store) SaveEIPImportBlacklistedPublicKeys(ctx context.Context, publicKeys [][48]byte) error + func (s *Store) SaveGenesisValidatorsRoot(ctx context.Context, genValRoot []byte) error + func (s *Store) SaveGraffitiOrderedIndex(ctx context.Context, index uint64) error + func (s *Store) SaveProposalHistoryForSlot(ctx context.Context, pubKey [48]byte, slot types.Slot, signingRoot []byte) error + func (s *Store) SigningRootAtTargetEpoch(ctx context.Context, pubKey [48]byte, target types.Epoch) ([32]byte, error) + func (s *Store) Size() (int64, error) + func (s *Store) UpdatePublicKeysBuckets(pubKeys [][48]byte) error Other modules containing this package github.com/prysmaticlabs/prysm github.com/prysmaticlabs/prysm/v3 github.com/prysmaticlabs/prysm/v4 github.com/prysmaticlabs/prysm/v5