-
Notifications
You must be signed in to change notification settings - Fork 210
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
ToConstraintFieldGadget for SW ProjectiveVar #284
Conversation
The CI passes! |
Should this serialize also the zero bit? I.e., by converting to |
You mean the The current upstream implementation only to_constraint_fields x and y for Affine for SW. Should we also include the infinity bool? I intentionally removed this one since some PR (I forgot) starts to omit the infinity bool. |
Ah, I misunderstood. So I double-read your comment and the code, now there are two action items:
|
yes to both! |
Done and CI passes. Please review it again. (The code is significantly shorter for ProjectiveVar!) |
Closed temporarily. (The branch has been wrongly used for some other changes). Will later push one to the arkworks's. |
The previous PR #278 does not include the case of SW
ProjectiveVar
(but onlyAffineVar
), but it is used in the main implementations ofPairingVar
for SW curves.So, when we are refactoring the Marlin gadgets, we discovered that
ToConstraintFieldGadget
for SWProjectiveVar
is needed. This PR provides so.