public_keys_registry

package
v1.9.7-0...-8dbb83f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBPublicKeysRegistry

type DBPublicKeysRegistry struct {
	// contains filtered or unexported fields
}

func NewHeadViewPublicKeysRegistry

func NewHeadViewPublicKeysRegistry(headView synced_data.SyncedData) *DBPublicKeysRegistry

func (*DBPublicKeysRegistry) AddState

func (r *DBPublicKeysRegistry) AddState(checkpoint solid.Checkpoint, s abstract.BeaconState)

AddState adds the state to the public keys registry

func (*DBPublicKeysRegistry) Prune

func (r *DBPublicKeysRegistry) Prune(epoch uint64)

Prune removes the public keys registry for the given epoch

func (*DBPublicKeysRegistry) ResetAnchor

func (r *DBPublicKeysRegistry) ResetAnchor(s abstract.BeaconState)

ResetAnchor resets the public keys registry to the anchor state

func (*DBPublicKeysRegistry) VerifyAggregateSignature

func (r *DBPublicKeysRegistry) VerifyAggregateSignature(checkpoint solid.Checkpoint, pubkeysIdxs *solid.RawUint64List, message []byte, signature common.Bytes96) (bool, error)

VerifyAggregateSignature verifies the aggregate signature

type InMemoryPublicKeysRegistry

type InMemoryPublicKeysRegistry struct {
	// contains filtered or unexported fields
}

func NewInMemoryPublicKeysRegistry

func NewInMemoryPublicKeysRegistry() *InMemoryPublicKeysRegistry

func (*InMemoryPublicKeysRegistry) AddState

func (r *InMemoryPublicKeysRegistry) AddState(checkpoint solid.Checkpoint, s abstract.BeaconState)

AddState adds the state to the public keys registry

func (*InMemoryPublicKeysRegistry) Prune

func (r *InMemoryPublicKeysRegistry) Prune(epoch uint64)

Prune removes the public keys registry for the given epoch

func (*InMemoryPublicKeysRegistry) ResetAnchor

ResetAnchor resets the public keys registry to the anchor state

func (*InMemoryPublicKeysRegistry) VerifyAggregateSignature

func (r *InMemoryPublicKeysRegistry) VerifyAggregateSignature(checkpoint solid.Checkpoint, pubkeysIdxs *solid.RawUint64List, message []byte, signature common.Bytes96) (bool, error)

VerifyAggregateSignature verifies the aggregate signature

type PublicKeyRegistry

type PublicKeyRegistry interface {
	ResetAnchor(s abstract.BeaconState)
	VerifyAggregateSignature(checkpoint solid.Checkpoint, pubkeysIdxs *solid.RawUint64List, message []byte, signature common.Bytes96) (bool, error)
	AddState(checkpoint solid.Checkpoint, s abstract.BeaconState)
	Prune(epoch uint64)
}

PublicKeyRegistry is a registry of public keys It is used to store public keys and their indices

Jump to

Keyboard shortcuts

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