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 incorrect square for Fp128 #526

Merged
merged 3 commits into from
Dec 5, 2022
Merged

Fix incorrect square for Fp128 #526

merged 3 commits into from
Dec 5, 2022

Conversation

Pratyush
Copy link
Member

Description

closes: #XXXX


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

@Pratyush Pratyush requested review from a team as code owners November 30, 2022 00:22
@Pratyush Pratyush requested review from mmagician and weikengchen and removed request for a team November 30, 2022 00:22
Copy link
Member

@mmagician mmagician left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can approve inasmuch as the new tests for fp128 pass.
Maybe it's worth adding a comment to the method explaining which algorithm is used for squaring? While the multiplication seems to follow this doc, I can't immediately see the connection to the squaring one.

@Pratyush
Copy link
Member Author

Pratyush commented Dec 5, 2022

We're not using the advanced squaring algorithm from the gnark folks. (I intend to implement that, but haven't found the cycles yet.)

I can't find a reference for our existing squaring algorithm, but it's the one implemented in bellman originally.

@Pratyush Pratyush merged commit b9c025f into master Dec 5, 2022
@Pratyush Pratyush deleted the fix-fp128 branch December 5, 2022 23:26
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