-
Notifications
You must be signed in to change notification settings - Fork 57
Create new AffinePoint from the compressed point representation #127
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
Create new AffinePoint from the compressed point representation #127
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I have left a small comment on the function documentation
Update comments to improve clarity Co-authored-by: Gabriel Bosio <[email protected]>
Thanks @FilipLaurentiu, sorry for the 4 month it took us to merge this. |
Hey ! Thanks for the review and for the approval 👍 About the delay, the changes were not so impactful, but good to have, avoid the confusion about the point compression, but I notice delays on other, more important repos. |
@FilipLaurentiu, which other repos are you using where you faced this type of struggle? Maybe we can help improve things |
I am looking for some feedback on this one. It should be more involving and probably introduce some breaking changes, but it will be good to know if it's of interest or not. |
@FilipLaurentiu do you have a telegram? If so, can you ping me at @tdelabro please? |
Cairo represent points on the curve just with the x coordinate (compressed). This is enough for signature verification but not enough for other operations on EC points.
This update provide a way to create a new
AffinePoint
from the x cordinate and the parity bit.Pull Request type
What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
No
Other information