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

Affine coordinate are not correctly exposed from the underlying type. #116

Merged
merged 6 commits into from
Mar 17, 2025

Conversation

FilipLaurentiu
Copy link
Contributor

ProjectivePoints have 3 coordinates (x,y,z) and the AffinePoint incorrectly expose just the (x, y) coordinate without converting the representation from projective to affine.

Pull Request type

  • Bugfix

What is the current behavior?

Affine coordinate are not correctly exposed from the underlying type.

What is the new behavior?

AffinePoint convert the ProjectivePoint coordinate to the affine coordinate and then extract the coordinates

Does this introduce a breaking change?

No

Other information

The problem appear when points are multiplied/added together and the z coordinate of the projective representation change.

ProjectivePoints have 3 coordinates (x,y,z) and the AffinePoint incorrectly expose just the (x, y) coordinate without converting the representation from projective to affine.
@FilipLaurentiu
Copy link
Contributor Author

@tdelabro any updates on this pr ?

@pefontana pefontana merged commit 4019a50 into starknet-io:main Mar 17, 2025
3 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.

4 participants