Skip to content

feat(tests): extra BLS12-381 coverage #1350

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spencer-tb
Copy link
Contributor

@spencer-tb spencer-tb commented Mar 25, 2025

🗒️ Description

Primarily adds additional coverage to g1/g2 add/mul/msm and pairing functions.

Includes a BLS point generator class that is used in for some of the test vectors. This may be used for future fuzzing.

Future Todo:

  • Pre-generate boundary points with the generator and hard code them in spec.py, to add test cases for these points, they take a long time to generate hence why they can't be created on the fly via fill.
  • Issue created here: WIP

🔗 Related Issues

Previous vector addition is included here: #1289 (to explain why we are deleting tests/prague/msm_G1_bls.json.

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.

@spencer-tb spencer-tb force-pushed the tests-bls12-additional-coverage branch from ebdfb04 to 1965e8d Compare March 25, 2025 18:19
@spencer-tb spencer-tb force-pushed the tests-bls12-additional-coverage branch from 1965e8d to ad15a45 Compare April 3, 2025 12:34
@spencer-tb spencer-tb changed the title feat(tests): extra bls12 coverage feat(tests): extra BLS12-381 coverage Apr 3, 2025
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this was my mistake, and a duplicate, it exists in vectors/.

@spencer-tb spencer-tb force-pushed the tests-bls12-additional-coverage branch from ad15a45 to 923d08b Compare April 3, 2025 12:38
@spencer-tb spencer-tb added scope:tests Scope: Changes EL client test cases in `./tests` type:feat type: Feature fork:prague Prague hardfork labels Apr 3, 2025
@winsvega
Copy link
Contributor

winsvega commented Apr 7, 2025

looks good. need to fix linter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fork:prague Prague hardfork scope:tests Scope: Changes EL client test cases in `./tests` type:feat type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants