forked from taikoxyz/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Byte Range Checks in
LtChip
(privacy-scaling-explorations#1364)
### Description Add Byte Range Checks in `LtChip`. This PR modifies the `LtChip`: - Added Fixed Column `u8` to the configuration of the chip - Added a lookup constraint between each `diff` advice column and the `u8` column - Added `load` function that assigns each integer from 0 to 255 (8bits) to the `u8` column Furthermore, the following have been applied to the tests: - In `less_than` testing, the circuit now takes `k = 9` to support a higher number of rows - In `copy_circuit` testing, the `assign_copy_events` function now calls `load` on the `lt_chip` to load the `u8` column ### Issue Link Related to privacy-scaling-explorations#916 ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) ### How Has This Been Tested? `make test-all` --------- Co-authored-by: adria0.eth <[email protected]> Co-authored-by: Chih Cheng Liang <[email protected]>
- Loading branch information
1 parent
77bc7e5
commit 4669a87
Showing
2 changed files
with
51 additions
and
6 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