testing

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TestHexSeed = "09b35d23d7ce46e4e0bf9f1ca390fd8685d7e4a9d0f2394a92a0d996de2a46b5df1a797896e0201679eea6115a094bd7"

TestHexSeed --

Variables

This section is empty.

Functions

func CreateMockRoots

func CreateMockRoots(numRoots int) [][32]byte

CreateMockRoots --

func CreateRandomPubKeys

func CreateRandomPubKeys(numValidators int) ([][field_params.DilithiumPubkeyLength]byte, error)

CreateRandomPubKeys --

func MockAttestingAndProposalHistories

func MockAttestingAndProposalHistories(pubkeys [][field_params.DilithiumPubkeyLength]byte) ([][]*kv.AttestationRecord, []kv.ProposalHistoryForPubkey)

MockAttestingAndProposalHistories given a number of validators, creates mock attesting and proposing histories within WEAK_SUBJECTIVITY_PERIOD bounds.

func MockSlashingProtectionJSON

func MockSlashingProtectionJSON(
	publicKeys [][field_params.DilithiumPubkeyLength]byte,
	attestingHistories [][]*kv.AttestationRecord,
	proposalHistories []kv.ProposalHistoryForPubkey,
) (*format.EIPSlashingProtectionFormat, error)

MockSlashingProtectionJSON creates a mock, full slashing protection JSON struct using attesting and proposing histories provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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