This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-keccak-normalize-table: unit tests for the content of lookup tab…
…les (#1263) ### Description This PR verifies the properties of the lookup tables used in Keccak. A port of scroll-tech#326 ### Issue Link This is a good regression test before #1241 ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents - A test circuit that populates the fixed lookup tables using the functions under test. - Check that the table contain valid values, and nothing else. - Minor refactoring for testability. Make pure functions that calculate parameters, and isolate the dependency on environment variables. ### How Has This Been Tested? cargo test -p zkevm-circuits --features test --release -- keccak --------- Co-authored-by: Aurélien Nicolas <info@nau.re>
- Loading branch information
Showing
2 changed files
with
218 additions
and
5 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