forked from ProvableHQ/snarkVM
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor `Group::new` and `Group::from_xy_coordinates` to save constraints and increase clarity. The enforcement of a point being in the (sub)group is now delegated to a new circuit that does just that, and uses another new circuit to enforce that a point is twice another (this differs from the circuit that doubles a point). This code has more separation between witness computation (console world) and circuit synthesis (circuit world), which is necessary to achieve some optimizations in the circuits. There is a TODO for the witness computation in `Group::new`: there must be already code to check whether a pair of coordinates is in the (sub)group. This TODO is just at the console level; the circuit enforcement is already done in this commit.
- Loading branch information
Showing
3 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters