-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circuit gas diff: Implement u96_limbs_less_than_guarantee_verify (#…
…1084) * Fix circuit implementation * Add circuit compare test (#1076) * Add more tests * Add compiler assert message * Adapt CircuitOutputs so that it can contain the modulo Instead of an array, now its a struct<array, array>, where the second array is the modulo * Save circuit output in struct representation, instead of integer It is ultimately returned in struct representation, so now it is converted sooner (useful for guarantee representation) * Save modulus to circuit output * Implement limbs_guarantee type with gate value and circuit modulus * Implement guarantee verify * Add function build_aggregate_slice * Use always struct for limbs * Fix comment * Improve documentation * Remove single_limb implementation and use generic noop
- Loading branch information
1 parent
c4cde60
commit 0a33cb3
Showing
6 changed files
with
390 additions
and
64 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
Oops, something went wrong.