forked from scroll-tech/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.
Implement constraints in state circuit spec (scroll-tech#462)
* Refactor StateCircuit + add lexicographic ordering constraints * Implement first_access method and fix stack change constraint * Cleanup and comment out failing constraint * Fix failing tests by correctly getting limbs in be order in lexicographic ordering * fix clippy * Rename test files for clippy * Cleanup benchmarks * fix build * Assign diff_inverse correctly * Fix instance function and convert it to a method * Fix storage_key_be_limbs method * Add degree test * Have StateCircuit use Vec<Rw> instead of RwMap * Compute first_access correctly * wip, but tests pass * Fix diff_2 assignment * cleanup * Use verify_at_rows to speed up tests and derive EnumIter * Add cleanup and explain diff_1 and diff_2 * cleanup * fmt * Add newline to fix cargo fmt * Fix degree test and TxLog table assignment * Cleanup and change index type to u8 from usize * Rename to diff_1->upper_limb_difference and diff_2->lower_limb_difference * Explain assignment in comments * fix conflicts * lint * fix rebase * fix build and tests from rebase * make change to rerun tests Co-authored-by: z2trillion <[email protected]> Co-authored-by: Zhang Zhuo <[email protected]>
- Loading branch information
1 parent
a6608b1
commit 818cf2e
Showing
23 changed files
with
1,884 additions
and
1,836 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.