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

if "greatest" is selected, second coordinate should be picked #495

Merged
merged 2 commits into from
Oct 16, 2022

Conversation

mmagician
Copy link
Member

Description

If I'm not mistaken, then according to the docs and code of get_ys_from_x_unchecked, the second value should be selected if greatest flag is true.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@mmagician mmagician requested a review from Pratyush October 11, 2022 19:45
@Pratyush
Copy link
Member

Thanks for the fix, it is indeed inconsistent with the documentation. Could you check against the call sites to see if this fix works? I'm asking because the code recently changed.

@mmagician
Copy link
Member Author

mmagician commented Oct 11, 2022

It's only used in sample and get_random_bytes. These methods didn't care for anything specific regarding the y-coordinate, as long as it was a valid point - which it is, no matter which coordinate is picked.

@mmagician mmagician merged commit 09d3102 into arkworks-rs:master Oct 16, 2022
@mmagician mmagician deleted the fix-from-x-unchecked branch December 19, 2022 10:55
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