spectest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllTests = []SpecTest{
	ssvmsg.Encoding(),
	ssvmsg.MsgIDBelongs(),
	ssvmsg.MsgIDDoesntBelongs(),

	partialsigmessage.Encoding(),
	partialsigmessage.InvalidMsg(),
	partialsigmessage.MessageSigner0(),
	partialsigmessage.NoMsgs(),
	partialsigmessage.SigValid(),
	partialsigmessage.PartialSigValid(),
	partialsigmessage.PartialRootValid(),
	partialsigmessage.ValidContributionProofMetaData(),
	partialsigmessage.InconsistentSignedMessage(),

	share.Encoding(),

	committeemember.HasQuorum(),
	committeemember.HasQuorum3f1(),
	committeemember.NoQuorumDuplicate(),
	committeemember.QuorumWithDuplicate(),

	encryption.SimpleEncrypt(),
	encryption.EncryptBLSSK(),

	validatorconsensusdata.InvalidDuty(),

	validatorconsensusdata.ProposerConsensusDataEncoding(),
	validatorconsensusdata.BlindedProposerConsensusDataEncoding(),
	validatorconsensusdata.CapellaBlockValidation(),
	validatorconsensusdata.CapellaBlindedBlockValidation(),
	validatorconsensusdata.ProposerNoJustifications(),
	validatorconsensusdata.InvalidCapellaBlindedBlockValidation(),
	validatorconsensusdata.InvalidCapellaBlockValidation(),
	validatorconsensusdata.DenebBlockValidation(),
	validatorconsensusdata.DenebBlindedBlockValidation(),
	validatorconsensusdata.InvalidDenebBlockValidation(),
	validatorconsensusdata.InvalidDenebBlindedBlockValidation(),

	validatorconsensusdata.AggregatorConsensusDataEncoding(),
	validatorconsensusdata.AggregatorValidation(),
	validatorconsensusdata.AggregatorNoJustifications(),
	validatorconsensusdata.InvalidAggregatorValidation(),

	validatorconsensusdata.SyncCommitteeContributionConsensusDataEncoding(),
	validatorconsensusdata.SyncCommitteeContributionValidation(),
	validatorconsensusdata.SyncCommitteeContributionNoJustifications(),
	validatorconsensusdata.InvalidSyncCommitteeContributionValidation(),

	validatorconsensusdata.ValidatorRegistration(),
	validatorconsensusdata.VoluntaryExit(),

	consensusdataproposer.VersionedBlockValidation(),
	consensusdataproposer.VersionedBlindedBlockValidation(),
	consensusdataproposer.VersionedBlockUnknownVersion(),
	consensusdataproposer.VersionedBlindedBlockUnknownVersion(),
	consensusdataproposer.VersionedBlockConsensusDataNil(),
	consensusdataproposer.VersionedBlindedBlockConsensusDataNil(),

	ssz.SSZWithdrawalsMarshaling(),

	beacon.DepositData(),

	signedssvmsg.Encoding(),
	signedssvmsg.Valid(),
	signedssvmsg.NilSSVMessage(),
	signedssvmsg.EmptySignature(),
	signedssvmsg.ZeroSigner(),
	signedssvmsg.NoSigners(),
	signedssvmsg.NoSignatures(),
	signedssvmsg.SignersAndSignaturesWithDifferentLength(),
	signedssvmsg.NonUniqueSigner(),

	duty.MapAttester(),
	duty.MapProposer(),
	duty.MapAggregator(),
	duty.MapSyncCommittee(),
	duty.MapSyncCommitteeContribution(),
	duty.MapValidatorRegistration(),
	duty.MapVoluntaryExit(),
	duty.MapUnknownRole(),

	beaconvote.BeaconVoteEncoding(),

	maxmsgsize.MaxConsensusData(),
	maxmsgsize.MaxBeaconVote(),
	maxmsgsize.MaxQBFTMessageWithNoJustification(),
	maxmsgsize.MaxQBFTMessageWith1Justification(),
	maxmsgsize.MaxQBFTMessageWith2Justification(),
	maxmsgsize.MaxPartialSignatureMessage(),
	maxmsgsize.MaxPartialSignatureMessages(),
	maxmsgsize.MaxPartialSignatureMessagesForPreConsensus(),
	maxmsgsize.MaxSSVMessageFromQBFTMessage(),
	maxmsgsize.MaxSSVMessageFromPartialSignatureMessage(),
	maxmsgsize.MaxSignedSSVMessageFromQBFTMessageWithNoJustification(),
	maxmsgsize.MaxSignedSSVMessageFromQBFTMessageWith1Justification(),
	maxmsgsize.MaxSignedSSVMessageFromQBFTMessageWith2Justification(),
	maxmsgsize.MaxSignedSSVMessageFromPartialSignatureMessages(),

	maxmsgsize.ExpectedPrepareQBFTMessage(),
	maxmsgsize.ExpectedCommitQBFTMessage(),
	maxmsgsize.ExpectedRoundChangeQBFTMessage(),
	maxmsgsize.ExpectedProposalQBFTMessage(),

	maxmsgsize.ExpectedPartialSignatureMessage(),
	maxmsgsize.ExpectedPartialSignatureMessages(),

	maxmsgsize.ExpectedPrepareSignedSSVMessage(),
	maxmsgsize.ExpectedCommitSignedSSVMessage(),
	maxmsgsize.ExpectedDecidedSignedSSVMessage(),
	maxmsgsize.ExpectedRoundChangeSignedSSVMessage(),
	maxmsgsize.ExpectedProposalSignedSSVMessage(),
	maxmsgsize.ExpectedPartialSignatureSignedSSVMessage(),
}

Functions

This section is empty.

Types

type SpecTest

type SpecTest interface {
	TestName() string
	Run(t *testing.T)
}

Jump to

Keyboard shortcuts

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