Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AggregatorMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleAggregator) return ret[:] }()
View Source
var AggregatorRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleAggregator, specssv.AggregatorValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex), keySet) }
View Source
var AttesterMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleAttester) return ret[:] }()
View Source
var AttesterRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleAttester, specssv.AttesterValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex, nil), keySet) }
View Source
var BaseValidator = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) *validator.Validator { ctx, cancel := context.WithCancel(context.TODO()) return validator.NewValidator( ctx, cancel, validator.Options{ Network: spectestingutils.NewTestingNetwork(), Beacon: spectestingutils.NewTestingBeaconNode(), BeaconNetwork: networkconfig.TestNetwork.Beacon, Storage: testing.TestingStores(logger), SSVShare: &types.SSVShare{ Share: *spectestingutils.TestingShare(keySet), }, Signer: spectestingutils.NewTestingKeyManager(), DutyRunners: map[spectypes.BeaconRole]runner.Runner{ spectypes.BNRoleAttester: AttesterRunner(logger, keySet), spectypes.BNRoleProposer: ProposerRunner(logger, keySet), spectypes.BNRoleAggregator: AggregatorRunner(logger, keySet), spectypes.BNRoleSyncCommittee: SyncCommitteeRunner(logger, keySet), spectypes.BNRoleSyncCommitteeContribution: SyncCommitteeContributionRunner(logger, keySet), spectypes.BNRoleValidatorRegistration: ValidatorRegistrationRunner(logger, keySet), spectypes.BNRoleVoluntaryExit: VoluntaryExitRunner(logger, keySet), }, }, ) }
View Source
var PostConsensusAggregatorMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusAggregatorMsg(sk, id, false, false) }
View Source
var PostConsensusAggregatorTooFewRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{}, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusAggregatorTooManyRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusAggregatorMsg(sk, id, false, false) ret.Message.Messages = append(ret.Message.Messages, ret.Message.Messages[0]) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: ret.Message.Messages, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusAttestationMsg = func(sk *bls.SecretKey, id spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { return postConsensusAttestationMsg(sk, id, height, false, false) }
View Source
var PostConsensusAttestationTooFewRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{}, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusAttestationTooManyRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { ret := postConsensusAttestationMsg(sk, id, height, false, false) ret.Message.Messages = append(ret.Message.Messages, ret.Message.Messages[0]) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: ret.Message.Messages, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusProposerMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusBeaconBlockMsg(sk, id, false, false) }
View Source
var PostConsensusProposerTooFewRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{}, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusProposerTooManyRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusBeaconBlockMsg(sk, id, false, false) ret.Message.Messages = append(ret.Message.Messages, ret.Message.Messages[0]) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: ret.Message.Messages, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusSigAggregatorWrongBeaconSignerMsg = func(sk *bls.SecretKey, id, beaconSigner spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusAggregatorMsg(sk, beaconSigner, false, true) ret.Signer = id return ret }
View Source
var PostConsensusSigAttestationWrongBeaconSignerMsg = func(sk *bls.SecretKey, id, beaconSigner spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { ret := postConsensusAttestationMsg(sk, beaconSigner, height, false, true) ret.Signer = id return ret }
View Source
var PostConsensusSigProposerWrongBeaconSignerMsg = func(sk *bls.SecretKey, id, beaconSigner spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusBeaconBlockMsg(sk, beaconSigner, false, true) ret.Signer = id return ret }
View Source
var PostConsensusSigSyncCommitteeWrongBeaconSignerMsg = func(sk *bls.SecretKey, id, beaconSigner spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusSyncCommitteeMsg(sk, beaconSigner, false, true) ret.Signer = id return ret }
View Source
var PostConsensusSyncCommitteeMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusSyncCommitteeMsg(sk, id, false, false) }
View Source
var PostConsensusSyncCommitteeTooFewRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{}, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusSyncCommitteeTooManyRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := postConsensusSyncCommitteeMsg(sk, id, false, false) ret.Message.Messages = append(ret.Message.Messages, ret.Message.Messages[0]) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.PostConsensusPartialSig, Slot: testingutils.TestingDutySlot, Messages: ret.Message.Messages, } sig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, sk.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: sig, Signer: id, } }
View Source
var PostConsensusWrongAggregatorMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusAggregatorMsg(sk, id, true, false) }
View Source
var PostConsensusWrongAttestationMsg = func(sk *bls.SecretKey, id spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { return postConsensusAttestationMsg(sk, id, height, true, false) }
View Source
var PostConsensusWrongProposerMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusBeaconBlockMsg(sk, id, true, false) }
View Source
var PostConsensusWrongSigAggregatorMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusAggregatorMsg(sk, id, false, true) }
View Source
var PostConsensusWrongSigAttestationMsg = func(sk *bls.SecretKey, id spectypes.OperatorID, height specqbft.Height) *spectypes.SignedPartialSignatureMessage { return postConsensusAttestationMsg(sk, id, height, false, true) }
View Source
var PostConsensusWrongSigProposerMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusBeaconBlockMsg(sk, id, false, true) }
View Source
var PostConsensusWrongSigSyncCommitteeMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusSyncCommitteeMsg(sk, id, false, true) }
View Source
var PostConsensusWrongSyncCommitteeMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return postConsensusSyncCommitteeMsg(sk, id, true, false) }
View Source
var PreConsensusContributionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return PreConsensusCustomSlotContributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot) }
View Source
var PreConsensusContributionProofNextEpochMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot2, testingutils.TestingDutySlot2, false, false) }
View Source
var PreConsensusContributionProofTooFewRootsMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, false, false) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.ContributionProofs, Slot: testingutils.TestingDutySlot, Messages: ret.Message.Messages[0:2], } msgSig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, beaconSK.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: msgSig, Signer: msgID, } }
View Source
var PreConsensusContributionProofTooManyRootsMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { ret := contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, false, false) msg := &spectypes.PartialSignatureMessages{ Type: spectypes.ContributionProofs, Slot: testingutils.TestingDutySlot, Messages: append(ret.Message.Messages, ret.Message.Messages[0]), } msgSig, _ := testingutils.NewTestingKeyManager().SignRoot(msg, spectypes.PartialSignatureType, beaconSK.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: *msg, Signature: msgSig, Signer: msgID, } }
View Source
var PreConsensusContributionProofWrongBeaconSigMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot+1, false, true) }
View Source
var PreConsensusCustomSlotContributionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID, slot spec.Slot) *spectypes.SignedPartialSignatureMessage { return contributionProofMsg(msgSK, beaconSK, msgID, beaconID, slot, testingutils.TestingDutySlot, false, false) }
View Source
var PreConsensusCustomSlotSelectionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID, slot spec.Slot) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, slot, testingutils.TestingDutySlot, 1, false) }
View Source
var PreConsensusFailedMsg = func(msgSigner *bls.SecretKey, msgSignerID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { signer := testingutils.NewTestingKeyManager() beacon := testingutils.NewTestingBeaconNode() d, _ := beacon.DomainData(testingutils.TestingDutyEpoch, spectypes.DomainRandao) signed, root, _ := signer.SignBeaconObject(spectypes.SSZUint64(testingutils.TestingDutyEpoch), d, msgSigner.GetPublicKey().Serialize(), spectypes.DomainRandao) msg := spectypes.PartialSignatureMessages{ Type: spectypes.RandaoPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{ { PartialSignature: signed[:], SigningRoot: root, Signer: msgSignerID, }, }, } sig, _ := signer.SignRoot(msg, spectypes.PartialSignatureType, msgSigner.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: msg, Signature: sig, Signer: msgSignerID, } }
View Source
var PreConsensusRandaoDifferentEpochMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch+1, 1, false) }
View Source
var PreConsensusRandaoDifferentSignerMsg = func( msgSigner, randaoSigner *bls.SecretKey, msgSignerID, randaoSignerID spectypes.OperatorID, ) *spectypes.SignedPartialSignatureMessage { signer := testingutils.NewTestingKeyManager() beacon := testingutils.NewTestingBeaconNode() d, _ := beacon.DomainData(testingutils.TestingDutyEpoch, spectypes.DomainRandao) signed, root, _ := signer.SignBeaconObject(spectypes.SSZUint64(testingutils.TestingDutyEpoch), d, randaoSigner.GetPublicKey().Serialize(), spectypes.DomainRandao) msg := spectypes.PartialSignatureMessages{ Type: spectypes.RandaoPartialSig, Slot: testingutils.TestingDutySlot, Messages: []*spectypes.PartialSignatureMessage{ { PartialSignature: signed[:], SigningRoot: root, Signer: randaoSignerID, }, }, } sig, _ := signer.SignRoot(msg, spectypes.PartialSignatureType, msgSigner.GetPublicKey().Serialize()) return &spectypes.SignedPartialSignatureMessage{ Message: msg, Signature: sig, Signer: msgSignerID, } }
View Source
var PreConsensusRandaoMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch, 1, false) }
View Source
var PreConsensusRandaoNextEpochMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch+1, 1, false) }
PreConsensusRandaoNextEpochMsg testing for a second duty start
View Source
var PreConsensusRandaoNoMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch, 0, false) }
View Source
var PreConsensusRandaoTooFewRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch, 0, false) }
View Source
var PreConsensusRandaoTooManyRootsMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch, 2, false) }
View Source
var PreConsensusRandaoWrongBeaconSigMsg = func(sk *bls.SecretKey, id spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return randaoMsg(sk, id, false, testingutils.TestingDutyEpoch, 1, true) }
View Source
var PreConsensusSelectionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return PreConsensusCustomSlotSelectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot) }
View Source
var PreConsensusSelectionProofNextEpochMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot2, testingutils.TestingDutySlot2, 1, false) }
View Source
var PreConsensusSelectionProofTooFewRootsMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, 0, false) }
View Source
var PreConsensusSelectionProofTooManyRootsMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, 3, false) }
View Source
var PreConsensusSelectionProofWrongBeaconSigMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, 1, true) }
View Source
var PreConsensusValidatorRegistrationDifferentEpochMsg = func(msgSK *bls.SecretKey, msgID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return validatorRegistrationMsg(msgSK, msgSK, msgID, msgID, 1, true, testingutils.TestingDutyEpoch, false) }
View Source
var PreConsensusValidatorRegistrationMsg = func(msgSK *bls.SecretKey, msgID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return validatorRegistrationMsg(msgSK, msgSK, msgID, msgID, 1, false, testingutils.TestingDutyEpoch, false) }
View Source
var PreConsensusValidatorRegistrationTooFewRootsMsg = func(msgSK *bls.SecretKey, msgID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return validatorRegistrationMsg(msgSK, msgSK, msgID, msgID, 0, false, testingutils.TestingDutyEpoch, false) }
View Source
var PreConsensusValidatorRegistrationTooManyRootsMsg = func(msgSK *bls.SecretKey, msgID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return validatorRegistrationMsg(msgSK, msgSK, msgID, msgID, 2, false, testingutils.TestingDutyEpoch, false) }
View Source
var PreConsensusWrongMsgSlotContributionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot+1, false, false) }
View Source
var PreConsensusWrongMsgSlotSelectionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return selectionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot+1, 1, false) }
View Source
var PreConsensusWrongOrderContributionProofMsg = func(msgSK, beaconSK *bls.SecretKey, msgID, beaconID spectypes.OperatorID) *spectypes.SignedPartialSignatureMessage { return contributionProofMsg(msgSK, beaconSK, msgID, beaconID, testingutils.TestingDutySlot, testingutils.TestingDutySlot, true, false) }
View Source
var ProposerBlindedBlockRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { ret := baseRunner( logger, spectypes.BNRoleProposer, specssv.ProposerValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex, nil), keySet, ) ret.(*runner.ProposerRunner).ProducesBlindedBlocks = true return ret }
View Source
var ProposerMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleProposer) return ret[:] }()
View Source
var ProposerRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleProposer, specssv.ProposerValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex, nil), keySet) }
View Source
var SSVMsgAggregator = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleAggregator)) }
View Source
var SSVMsgAttester = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleAttester)) }
View Source
var SSVMsgProposer = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleProposer)) }
View Source
var SSVMsgSyncCommittee = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleSyncCommittee)) }
View Source
var SSVMsgSyncCommitteeContribution = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleSyncCommitteeContribution)) }
View Source
var SSVMsgValidatorRegistration = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleValidatorRegistration)) }
View Source
var SSVMsgWrongID = func(qbftMsg *specqbft.SignedMessage, partialSigMsg *spectypes.SignedPartialSignatureMessage) *spectypes.SSVMessage { return ssvMsg(qbftMsg, partialSigMsg, spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingWrongValidatorPubKey[:], spectypes.BNRoleAttester)) }
View Source
var SyncCommitteeContributionMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleSyncCommitteeContribution) return ret[:] }()
View Source
var SyncCommitteeContributionRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleSyncCommitteeContribution, specssv.SyncCommitteeContributionValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex), keySet) }
View Source
var SyncCommitteeMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleSyncCommittee) return ret[:] }()
View Source
var SyncCommitteeRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleSyncCommittee, specssv.SyncCommitteeValueCheckF(spectestingutils.NewTestingKeyManager(), spectypes.BeaconTestNetwork, spectestingutils.TestingValidatorPubKey[:], spectestingutils.TestingValidatorIndex), keySet) }
View Source
var TestAggregatorConsensusData = &spectypes.ConsensusData{ Duty: testingutils.TestingAggregatorDuty, DataSSZ: testingutils.TestingAggregateAndProofBytes, }
View Source
var TestAggregatorConsensusDataByts, _ = TestAggregatorConsensusData.Encode()
View Source
var TestAttesterConsensusData = &spectypes.ConsensusData{ Duty: testingutils.TestingAttesterDuty, DataSSZ: testingutils.TestingAttestationDataBytes, }
View Source
var TestAttesterConsensusDataByts, _ = TestAttesterConsensusData.Encode()
View Source
var TestConsensusUnkownDutyTypeData = &spectypes.ConsensusData{ Duty: testingutils.TestingUnknownDutyType, DataSSZ: testingutils.TestingAttestationDataBytes, }
View Source
var TestConsensusUnkownDutyTypeDataByts, _ = TestConsensusUnkownDutyTypeData.Encode()
View Source
var TestConsensusWrongDutyPKData = &spectypes.ConsensusData{ Duty: testingutils.TestingWrongDutyPK, DataSSZ: testingutils.TestingAttestationDataBytes, }
View Source
var TestConsensusWrongDutyPKDataByts, _ = TestConsensusWrongDutyPKData.Encode()
View Source
var TestProposerBlindedBlockConsensusData = &spectypes.ConsensusData{ Duty: *testingutils.TestingProposerDutyV(spec2.DataVersionBellatrix), Version: spec2.DataVersionCapella, DataSSZ: testingutils.TestingBlindedBeaconBlockBytesV(spec2.DataVersionBellatrix), }
View Source
var TestProposerBlindedBlockConsensusDataByts, _ = TestProposerBlindedBlockConsensusData.Encode()
View Source
var TestProposerConsensusData = &spectypes.ConsensusData{ Duty: *testingutils.TestingProposerDutyV(spec2.DataVersionBellatrix), Version: spec2.DataVersionCapella, DataSSZ: testingutils.TestingBeaconBlockBytesV(spec2.DataVersionBellatrix), }
View Source
var TestProposerConsensusDataByts, _ = TestProposerConsensusData.Encode()
View Source
var TestSyncCommitteeConsensusData = &spectypes.ConsensusData{ Duty: testingutils.TestingSyncCommitteeDuty, DataSSZ: testingutils.TestingSyncCommitteeBlockRoot[:], }
View Source
var TestSyncCommitteeConsensusDataByts, _ = TestSyncCommitteeConsensusData.Encode()
View Source
var TestSyncCommitteeContributionConsensusData = &spectypes.ConsensusData{ Duty: testingutils.TestingSyncCommitteeContributionDuty, DataSSZ: testingutils.TestingContributionsDataBytes, }
View Source
var TestSyncCommitteeContributionConsensusDataByts, _ = TestSyncCommitteeContributionConsensusData.Encode()
View Source
var TestingHighestDecidedSlot = phase0.Slot(0)
View Source
var TestingSSVDomainType = spectypes.V3Testnet
View Source
var UnknownDutyTypeRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectestingutils.UnknownDutyType, spectestingutils.UnknownDutyValueCheck(), keySet) }
View Source
var ValidatorRegistrationMsgID = func() []byte { ret := spectypes.NewMsgID(TestingSSVDomainType, testingutils.TestingValidatorPubKey[:], spectypes.BNRoleValidatorRegistration) return ret[:] }()
View Source
var ValidatorRegistrationRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { ret := baseRunner(logger, spectypes.BNRoleValidatorRegistration, nil, keySet) return ret }
View Source
var VoluntaryExitRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner { return baseRunner(logger, spectypes.BNRoleVoluntaryExit, nil, keySet) }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.