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

banderwagon: check point in curve in SetBytesUncompressed #69

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Dec 4, 2023

This PR adds an extra check in banderwagon.SetBytesUncomprssed(..., true) such that:

  • Checks if the x coordinate corresponds to a point in the curve.
  • Verifies that the resulting y coordinate bytes match the right-half of the provided bytes.

Tests were added to check both cases.

jsign added 3 commits December 4, 2023 18:08
…tBytesUncompressed

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign force-pushed the jsign-check-point-in-curve-set-uncompressed branch from 412eefb to 2d144e7 Compare December 4, 2023 21:12
@jsign jsign marked this pull request as ready for review December 4, 2023 21:13
@jsign jsign requested a review from kevaundray December 4, 2023 21:13
@kevaundray kevaundray merged commit 408dbff into master Dec 5, 2023
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.

2 participants