Documentation
¶
Index ¶
- Constants
- func CreateMockRoots(numRoots int) [][32]byte
- func CreateRandomPubKeys(numValidators int) ([][field_params.DilithiumPubkeyLength]byte, error)
- func MockAttestingAndProposalHistories(pubkeys [][field_params.DilithiumPubkeyLength]byte) ([][]*kv.AttestationRecord, []kv.ProposalHistoryForPubkey)
- func MockSlashingProtectionJSON(publicKeys [][field_params.DilithiumPubkeyLength]byte, ...) (*format.EIPSlashingProtectionFormat, error)
Constants ¶
View Source
const TestHexSeed = "09b35d23d7ce46e4e0bf9f1ca390fd8685d7e4a9d0f2394a92a0d996de2a46b5df1a797896e0201679eea6115a094bd7"
TestHexSeed --
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.