Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP 7495: Add ssz generic tests for StableContainer and Profile #3777

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from

Conversation

wemeetagain
Copy link
Contributor

@wemeetagain wemeetagain commented May 23, 2024

EIP-7495 defines two new SSZ types: StableContainer and Profile.
Functionality from this EIP is required in several EIPs currently under consideration:

This PR adds both StableContainer and Profile to the ssz_generic spec test generators.

Output of make gen_ssz_generic: ssz_generic_7495.tar.gz

Notes/TODOs:

  • Only added valid test cases for both StableContainer and Profile. Adding invalid cases may require tweaking some generator helpers for these types.
  • Only added tests for Profile objects without optional fields. This is sufficient to test all functionality required for EIP-7688 - Forward Compatible Consensus Data Structures, but not sufficient to test all functionality required for EIP-6493 - SSZ Transaction Signature Scheme. More test cases should be added to cover this.

etan-status added a commit to status-im/nimbus-eth2 that referenced this pull request May 24, 2024
Implement test runner for new consensus-spec tests:

- ethereum/consensus-specs#3777
@hwwhww hwwhww added general:enhancement New feature or request scope:SSZ Simple Serialize labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general:enhancement New feature or request scope:SSZ Simple Serialize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants