Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spec - Electra: Attestation, Aggregation and Proposal Alignment (#511)
* remove ssz encoding for CommitteeMember and Share (#490) * remove ssz encoding for CommitteeMember and Share * remove commented code --------- Co-authored-by: Alan Li <[email protected]> * Spec - Move domainType from CommitteeMember and Share to Network (#494) * remove domaintype from committeeMember * remove domaintype from share * add config for ssv containing domainType * add custom unmarshal for baserunner to avoid error in unmarshalling config * move domainType to Network * add testing domain in NewTestingNetwork function * Spec - filter committee duties per slot validator duties (#467) * Filter shares for slot `CommitteeRunner` based on validators that have duty for that slot. * Filter duty and create share map according to owned validators * Add test: start duty with no shares for duty's validators * Add test: happy flow for committee with fraction of duty's validators * Generate JSON tests * Apply suggestions --------- Co-authored-by: MatheusFranco99 <[email protected]> * Spec - check att and sync duties exist before submitting (#468) * Meta - Update to go1.22 (#474) * Update go1.20 to go1.22 * Update go.sum with mod tidy * Meta - Update dependencies (#483) * Update dependencies * Fix lint issue * Generate JSON tests to trigger actions * Update fastssz * Generate JSON tests and align ssz error * Revert go-eth2-client version change * Revert fastssz upgrade * Generate SSZ and JSON tests * Meta - Fix static analysis issues (#480) * Solve potential file inclusion via variable * Fix file permission (0644 to 0600) * Add nosec comment for PRNG (pseudo-random number generator) used for testing * Fix lint issue on nil check in []byte type * Update permission from 0444 to 0600 * Update 0444 to 0400 * Meta - Drop unnecessary nolint comments (#477) * Remove nolint comment and export timeout variables * Drop unnecessary nolint * Add comment * Fix lint issue * Spec - Share length validation (#478) * Add share length validation in runner construction * Align to error handling in runners constructions * Add validation to committee runner * Add runner construction tests * Refactor runner construction in testingutil to deal with creation errors * Generate JSON tests * Fix lint issue * Fix comments * Meta - Drop redundant error (#475) * Spec - Drop redundant validation for decided messages (#476) * Remove redundant validation * Align error string * Spec - Sort signers in decided message (#484) * Sort signers in decided message * Add test for sorted signers in decided msg * Generate JSON tests * Fix lint issue * Spec - Stop processing after decided (#487) * Stop processing consensus messages after instance is decided * Align error in qbft tests * Align errors in ssv tests * Generate JSON tests * Fix lint issue * Spec - Drop leftover error check (#469) * Remove leftover err check * Align argument variable name to type * Spec - Secure key storage (#481) * Implement secure key storage using PKCS8 * Fix lint issue * Switch back PKCS8 to PKCS1 * Meta - Remove residual DKG (#502) * Remove DKG signature type * Remove DKG msg type * Remove DKGOperators field from TestKeySet * Remove unused ecdsaKeys field from TestingKeyStorage * Remove unused "ecdsaSKFromHex" function * Generate JSON tests * Spec - Add GoSec action and fix issues (#505) * Add github action and makefile command * Fix issues in round robin proposer function * Fix bad PutUint32 in GetCommitteeID * Fix issue with HasQuorum and HasPartialQuorum * Add role sanitization in GetRoleType and NewMessageType * Add sanitization to BeaconNetwork methods * Add sanitization in testingutils * Add sanitization to height usage in test files * Fix uint64 conversion in runner/postconsensus/valid_msg test * Sanitize ValidatorIndex conversion * Update action name * Fix tests to use valid RunnerRoles * Generate SSZ * Generate JSON tests * Revert the change on GetCommitteeID * Add nosec G115 to GetCommitteeID * revert the merge because it was merged with origin main by accident --------- Co-authored-by: rehs0y <[email protected]> Co-authored-by: MatheusFranco99 <[email protected]> * reset on dev * Tests - Remove entropy in tests (#507) * Solve entropy in simple case in which a fixed key can be used * Solve entropy in test type by changing the test spec: removing CypherText and using fixed keys * stop using CommitteeIndex in AttestationData * stop using CommitteeIndex in testing utils * generate JSON tests * update attestantio/go-eth2-client * set committee index to 0 as prposed in EIP-7549 * use electra.SingleAttestation for attester duty * align attestation tests to submit electra.SingleAttestation * align to pectra aggregator data type * use versioned attestation response for attestation * add comment about data version api call * Merge branch 'main' into drop-committee-index * refactor beacon node testingutils, separate beacon role by file * make AttestationData construction versioned * revert valuecheck redundant change * refactor beacon node testing utils * refactor ssv msgs testing utils * align other testing utils modules * align types tests * align ssv pre-consensus tests * align ssv post-consensus tests * align ssv consensus tests * align ssv valcheck and newduty tests * align ssv dutyexe, psigcontainer, and runner tests * align ssv committee tests * generate JSON tests * use spec.VersionedAttestation; drop VersionedAttestationResponse * align testing util to use VersionedAttestation * generate JSON tests * fix typo Co-authored-by: Matus Kysel <[email protected]> * fix typo Co-authored-by: Matus Kysel <[email protected]> * fix ssz generator * fetch version only once (outside loop) * rename variable that overwrites an outer-scope one * include validator index in versioned attestation * test objects sent on the wire (single attestation) * align testingutils to use single attestation * update go-eth2-client version in generate file * refactor versioned attestation construction * align to new ssz error msg * align to go-eth2-client 0.24.0 release * support electra blocks * align testing for electra blocks * generate JSON tests * fix beacon block blinded test * Merge branch 'main' into drop-committee-index * add issue
- Loading branch information