forked from privacy-scaling-explorations/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
PUSH0
instruction (privacy-scaling-explorations#1463)
### Description 1. Add `PUSH0` opcode to eth-types. It could be parsed from `0x5f` or a string of PUSH0. 2. In eth-types, update `is_push` function to return true for `PUSH0 .. PUSH32`, and add a new function `is_push_with_data`, it returns true for `PUSH1 .. PUSH32`. 3. Small fixes to replace `PUSH1 - 1` with PUSH0 value. 4. Add PUSH0 implementation to bus-mapping, and `PushGadget` to support PUSH0 in zkevm-circuits. ### Issue Link Close privacy-scaling-explorations#1473 Reference previous PR privacy-scaling-explorations#1361 zkevm-specs PR privacy-scaling-explorations/zkevm-specs#471 ### Type of change - [x] New feature (non-breaking change which adds functionality) --------- Co-authored-by: Chih Cheng Liang <[email protected]>
- Loading branch information
1 parent
f30b7eb
commit 96b3c4e
Showing
9 changed files
with
173 additions
and
132 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
Oops, something went wrong.