Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 Changes in this version + const TestMnemonic + func CreateMockRoots(numRoots int) [][32]byte + func CreateRandomPubKeys(numValidators int) ([][fieldparams.BLSPubkeyLength]byte, error) + func MockAttestingAndProposalHistories(pubkeys [][fieldparams.BLSPubkeyLength]byte) ([][]*kv.AttestationRecord, []kv.ProposalHistoryForPubkey) + func MockSlashingProtectionJSON(publicKeys [][fieldparams.BLSPubkeyLength]byte, ...) (*format.EIPSlashingProtectionFormat, error) + type MockProtector struct + AllowAttestation bool + AllowBlock bool + StatusCalled bool + VerifyAttestationCalled bool + VerifyBlockCalled bool + func (mp MockProtector) CheckAttestationSafety(_ context.Context, _ *eth.IndexedAttestation) bool + func (mp MockProtector) CheckBlockSafety(_ context.Context, _ *eth.SignedBeaconBlockHeader) bool + func (mp MockProtector) Status() error + type MockSlasher struct + IsSlashableAttestationCalled bool + IsSlashableBlockCalled bool + SlashAttestation bool + SlashBlock bool + func (MockSlasher) HighestAttestations(_ context.Context, _ *eth.HighestAttestationRequest, _ ...grpc.CallOption) (*eth.HighestAttestationResponse, error) + func (ms MockSlasher) IsSlashableAttestation(_ context.Context, in *eth.IndexedAttestation, _ ...grpc.CallOption) (*eth.AttesterSlashingResponse, error) + func (ms MockSlasher) IsSlashableBlock(_ context.Context, in *eth.SignedBeaconBlockHeader, _ ...grpc.CallOption) (*eth.ProposerSlashingResponse, error)