-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create assertions for non-strict comparison. (#1)
* Import merkle tree package to fix tests. * Fix minor grammatical errors. * Add comparison constraint for non-strict case. The assert does not produce a constraint, it just stops witness generation. So an adversarial prover could remove the assert line and generate an invalid proof that the verifier would accept. Also, simplify the sourceValue === claimedValue line by removing the IsZero circuit. * Prevent overlow of comparator range * Fix overflow check. Was passing a single signal to compconstant where it required a 254 bit binary decomposition. * Revert "Import merkle tree package to fix tests." This reverts commit c5ac5ac. * Simplify overflow check.
- Loading branch information
1 parent
7037594
commit cd73902
Showing
3 changed files
with
16 additions
and
7 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