-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable optional value handling in emulated and bls12381 (#48)
* emulated: Remove unwraps and defaults on get_value - Add allocate_empty_limbs internal function for use when limbs are missing assignment - Change From to TryFrom for EmulatedFieldElement -> BigInt - Change hints to correctly work when running under MetricCS - Add allocate_optional_field_element_unchecked that receives Option<BigInt> instead - Replace all unwrap_or_default() with ok_or(AssignmentMissing) - Remove all .get_value().unwrap() calls and replace with options * bls12381: Handle optional values better Also add a MetricCS pairing test to ensure that the circuit works when no assignments are provided * bls12381: Fix TryFrom for G2Point y was reading from the x component
- Loading branch information
Showing
13 changed files
with
661 additions
and
447 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
Oops, something went wrong.