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

Add group of invalid G1 points in KZG tests #3344

Merged
merged 2 commits into from
May 4, 2023

Conversation

jtraglia
Copy link
Member

@jtraglia jtraglia commented May 2, 2023

Previously, there were four invalid G1 points were being tested in individual tests for commitments and proofs. This PR adds these to a list (INVALID_G1_POINTS) and loops over them like we do for blobs and field elements. This reduces a lot of duplication. Also, in some identifiers there was an unnecessary variable being hashed.

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

nice refactoring and cleanup 👍

I've run testgen and it worked well.

@hwwhww hwwhww merged commit b617c62 into ethereum:dev May 4, 2023
12 checks passed
@jtraglia jtraglia deleted the group-invalid-g1-points branch May 4, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants