Skip to content

chore: Add static point at infinity test case #17

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

kevaundray
Copy link

This brings the g1 version of 2g1+inf inline with the g2 version.

It is testing the case where we want to do a size 2 multiexp aG + bH , where H is the point at infinity versus bH being the point at infinity because b=0.

This edge case is important because many clients have code that filters out the point at infinity due to some libraries not handling them gracefully in an MSM.

@kevaundray kevaundray changed the title chore: Add point at infinity test case chore: Add static point at infinity test case Mar 18, 2025
Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM, nice catch 👍

@asanso
Copy link
Collaborator

asanso commented Mar 19, 2025

@kevaundray gosh, thanks for catching, wouldn't rhe result change as weill ?

@asanso
Copy link
Collaborator

asanso commented Mar 19, 2025

@kevaundray hold on semantically the tests are identical. you do 2*point_at _infinity =. point_at_infinity while the current test does 0*P =. point_at_infinity so technically is correct :)

Copy link
Collaborator

@asanso asanso left a comment

Choose a reason for hiding this comment

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

thx merging

@asanso asanso merged commit 378d945 into ethereum:eip-2537 Mar 19, 2025
2 checks passed
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.

3 participants