Documentation ¶
Index ¶
- type ConsensusDataTest
- func AggregatorNoJustifications() *ConsensusDataTest
- func AggregatorValidation() *ConsensusDataTest
- func AttestationValidation() *ConsensusDataTest
- func AttesterJustifications() *ConsensusDataTest
- func CapellaBlindedBlockValidation() *ConsensusDataTest
- func CapellaBlockValidation() *ConsensusDataTest
- func DenebBlindedBlockValidation() *ConsensusDataTest
- func DenebBlockValidation() *ConsensusDataTest
- func InvalidAggregatorValidation() *ConsensusDataTest
- func InvalidAttestationValidation() *ConsensusDataTest
- func InvalidCapellaBlindedBlockValidation() *ConsensusDataTest
- func InvalidCapellaBlockValidation() *ConsensusDataTest
- func InvalidDenebBlindedBlockValidation() *ConsensusDataTest
- func InvalidDenebBlockValidation() *ConsensusDataTest
- func InvalidDuty() *ConsensusDataTest
- func InvalidSyncCommitteeBlockValidation() *ConsensusDataTest
- func InvalidSyncCommitteeContributionValidation() *ConsensusDataTest
- func ProposerNoJustifications() *ConsensusDataTest
- func SyncCommitteeContributionNoJustifications() *ConsensusDataTest
- func SyncCommitteeContributionValidation() *ConsensusDataTest
- func SyncCommitteeJustifications() *ConsensusDataTest
- func SyncCommitteeNoJustifications() *ConsensusDataTest
- func ValidatorRegistration() *ConsensusDataTest
- func VoluntaryExit() *ConsensusDataTest
- type EncodingTest
- func AggregatorConsensusDataEncoding() *EncodingTest
- func AttestationConsensusDataEncoding() *EncodingTest
- func BlindedProposerConsensusDataEncoding() *EncodingTest
- func ConsensusDataEncoding(name string, cd *types.ConsensusData) *EncodingTest
- func ProposerConsensusDataEncoding() *EncodingTest
- func SyncCommitteeConsensusDataEncoding() *EncodingTest
- func SyncCommitteeContributionConsensusDataEncoding() *EncodingTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusDataTest ¶
type ConsensusDataTest struct { Name string ConsensusData types.ConsensusData ExpectedError string }
func AggregatorNoJustifications ¶
func AggregatorNoJustifications() *ConsensusDataTest
AggregatorNoJustifications tests an invalid consensus data with no aggregator pre-consensus justifications
func AggregatorValidation ¶
func AggregatorValidation() *ConsensusDataTest
AggregatorValidation tests a valid consensus data with AggregateAndProof
func AttestationValidation ¶
func AttestationValidation() *ConsensusDataTest
AttestationValidation tests a valid consensus data with AttestationData
func AttesterJustifications ¶
func AttesterJustifications() *ConsensusDataTest
AttesterJustifications tests an invalid consensus data with attester pre-consensus justifications
func CapellaBlindedBlockValidation ¶
func CapellaBlindedBlockValidation() *ConsensusDataTest
CapellaBlindedBlockValidation tests a valid consensus data with capella blinded block
func CapellaBlockValidation ¶
func CapellaBlockValidation() *ConsensusDataTest
CapellaBlockValidation tests a valid consensus data with capella block
func DenebBlindedBlockValidation ¶
func DenebBlindedBlockValidation() *ConsensusDataTest
DenebBlindedBlockValidation tests a valid consensus data with deneb blinded block
func DenebBlockValidation ¶
func DenebBlockValidation() *ConsensusDataTest
DenebBlockValidation tests a valid consensus data with deneb block
func InvalidAggregatorValidation ¶
func InvalidAggregatorValidation() *ConsensusDataTest
InvalidAggregatorValidation tests an invalid consensus data with AggregateAndProof
func InvalidAttestationValidation ¶
func InvalidAttestationValidation() *ConsensusDataTest
InvalidAttestationValidation tests an invalid consensus data with AttestationData
func InvalidCapellaBlindedBlockValidation ¶
func InvalidCapellaBlindedBlockValidation() *ConsensusDataTest
InvalidCapellaBlindedBlockValidation tests an invalid consensus data with capella blinded block
func InvalidCapellaBlockValidation ¶
func InvalidCapellaBlockValidation() *ConsensusDataTest
InvalidCapellaBlockValidation tests an invalid consensus data with capella block
func InvalidDenebBlindedBlockValidation ¶
func InvalidDenebBlindedBlockValidation() *ConsensusDataTest
InvalidDenebBlindedBlockValidation tests an invalid consensus data with deneb blinded block
func InvalidDenebBlockValidation ¶
func InvalidDenebBlockValidation() *ConsensusDataTest
InvalidDenebBlockValidation tests an invalid consensus data with deneb block
func InvalidDuty ¶
func InvalidDuty() *ConsensusDataTest
InvalidDuty tests an invalid consensus data with invalid duty
func InvalidSyncCommitteeBlockValidation ¶
func InvalidSyncCommitteeBlockValidation() *ConsensusDataTest
InvalidSyncCommitteeBlockValidation tests an invalid consensus data with sync committee block data.
func InvalidSyncCommitteeContributionValidation ¶
func InvalidSyncCommitteeContributionValidation() *ConsensusDataTest
InvalidSyncCommitteeContributionValidation tests an invalid consensus data with sync committee contrib.
func ProposerNoJustifications ¶
func ProposerNoJustifications() *ConsensusDataTest
ProposerNoJustifications tests an invalid consensus data with no proposer justifications
func SyncCommitteeContributionNoJustifications ¶
func SyncCommitteeContributionNoJustifications() *ConsensusDataTest
SyncCommitteeContributionNoJustifications tests an invalid consensus data with no sync committee contribution pre-consensus justifications
func SyncCommitteeContributionValidation ¶
func SyncCommitteeContributionValidation() *ConsensusDataTest
SyncCommitteeContributionValidation tests a valid consensus data with sync committee contrib.
func SyncCommitteeJustifications ¶
func SyncCommitteeJustifications() *ConsensusDataTest
SyncCommitteeJustifications tests an invalid consensus data with sync committee pre-consensus justifications
func SyncCommitteeNoJustifications ¶
func SyncCommitteeNoJustifications() *ConsensusDataTest
SyncCommitteeNoJustifications tests a valid consensus data with no sync committee pre-consensus justifications
func ValidatorRegistration ¶
func ValidatorRegistration() *ConsensusDataTest
ValidatorRegistration tests an invalid consensus data for validator registration (has no consensus data)
func VoluntaryExit ¶
func VoluntaryExit() *ConsensusDataTest
VoluntaryExit tests an invalid consensus data for voluntary exit (has no consensus data)
func (*ConsensusDataTest) Run ¶
func (test *ConsensusDataTest) Run(t *testing.T)
func (*ConsensusDataTest) TestName ¶
func (test *ConsensusDataTest) TestName() string
type EncodingTest ¶
func AggregatorConsensusDataEncoding ¶
func AggregatorConsensusDataEncoding() *EncodingTest
func AttestationConsensusDataEncoding ¶
func AttestationConsensusDataEncoding() *EncodingTest
func BlindedProposerConsensusDataEncoding ¶
func BlindedProposerConsensusDataEncoding() *EncodingTest
func ConsensusDataEncoding ¶
func ConsensusDataEncoding(name string, cd *types.ConsensusData) *EncodingTest
ConsensusDataEncoding tests encoding and decoding ConsensusData for all duties
func ProposerConsensusDataEncoding ¶
func ProposerConsensusDataEncoding() *EncodingTest
func SyncCommitteeConsensusDataEncoding ¶
func SyncCommitteeConsensusDataEncoding() *EncodingTest
func SyncCommitteeContributionConsensusDataEncoding ¶
func SyncCommitteeContributionConsensusDataEncoding() *EncodingTest
func (*EncodingTest) Run ¶
func (test *EncodingTest) Run(t *testing.T)
func (*EncodingTest) TestName ¶
func (test *EncodingTest) TestName() string
Source Files ¶
- aggregator_no_justifications.go
- aggregator_validation.go
- attestation_validation.go
- attester_justifications.go
- capella_blinded_block_validation.go
- capella_block_validation.go
- consensus_data_encoding.go
- deneb_blinded_block_validation.go
- deneb_block_validation.go
- invalid_aggregator_validation.go
- invalid_attestation_validation.go
- invalid_capella_blinded_block_validation.go
- invalid_capella_block_validation.go
- invalid_deneb_blinded_block_validation.go
- invalid_deneb_block_validation.go
- invalid_duty.go
- invalid_sync_committee_block_validation.go
- invalid_sync_committee_cntribution_validation.go
- proposer_no_justifications.go
- sync_committee_cntribution_validation.go
- sync_committee_contrib_no_justifications.go
- sync_committee_justifications.go
- sync_committee_no_justifications.go
- test.go
- test_encoding.go
- validator_registration.go
- voluntary_exit.go