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.
Gas Cost Checks for Precompile Calls (scroll-tech#696)
* feat: constrain step gas cost * identity * constraining gas cost in precompile gadgets * `ModExp` gas costs (scroll-tech#705) * wip * more wip * exp bit length ok? * update byte size gadget for neatly code * witness assignment for modexp gas gadget --------- Co-authored-by: Ho Vei <[email protected]> * fixed tables for division by 3 and 8 * fix: byte/bit size and endianness fix for modexp * test: test modexp with big value for exponent (for gas cost calc) * fix: ignore gas costs check for unimplemented precompiles --------- Co-authored-by: Ho Vei <[email protected]>
- Loading branch information
1 parent
fb86b74
commit faeced2
Showing
18 changed files
with
615 additions
and
138 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
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.