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

Fix EllipticCurveAdd formula when computing (P - P) - P #22

Merged
merged 1 commit into from
Jan 14, 2023

Conversation

tjade273
Copy link
Contributor

Currently, due to a bug (#13) in EllipticCurveAdd, computing EllipticCurveAdd(EllipticCurveAdd(P, -P), -P) results in the point at infinity, as opposed to the correct result of -P.

I added a regression test for this, as well as a test that iterates through all sums of P, -P, O.

@jonathanpwang jonathanpwang merged commit 669e267 into yi-sun:master Jan 14, 2023
@jonathanpwang
Copy link
Collaborator

Awesome, thank you! Great to see someone reading the issues and contributing back 😄

@tjade273 tjade273 mentioned this pull request Feb 7, 2023
@jonathanpwang jonathanpwang mentioned this pull request Mar 6, 2023
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.

2 participants