Skip to content

Add script to validate JSON and SSZ examples match - #139

Open
yug49 wants to merge 1 commit into
ethereum:mainfrom
yug49:feat/validate-examples-script
Open

Add script to validate JSON and SSZ examples match#139
yug49 wants to merge 1 commit into
ethereum:mainfrom
yug49:feat/validate-examples-script

Conversation

@yug49

@yug49 yug49 commented Dec 3, 2025

Copy link
Copy Markdown

Closes #129

This PR adds a Python script that validates all JSON and SSZ example pairs in the repository match byte-for-byte.

Changes

  • scripts/validate_examples.py - Validation script with full SSZ type definitions for all forks (Bellatrix → Fulu)
  • scripts/requirements.txt - Dependencies (remerkleable>=0.1.28)
  • .github/workflows/validate-examples.yaml - CI workflow to run validation on PRs

Usage

pip install -r scripts/requirements.txt
python scripts/validate_examples.py --verbose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A script to ensure JSON and SSZ examples match

1 participant