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
[CREATE Part B] Error cases that will be handled within opcode gadgets #1357
Closed
roynalnaruto
wants to merge
3
commits into
privacy-scaling-explorations:main
from
scroll-tech:feat/create-part-b
Closed
[CREATE Part B] Error cases that will be handled within opcode gadgets #1357
roynalnaruto
wants to merge
3
commits into
privacy-scaling-explorations:main
from
scroll-tech:feat/create-part-b
+229
−85
Conversation
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
github-actions
bot
added
crate-bus-mapping
Issues related to the bus-mapping workspace member
crate-mock
Issues related to the mock workspace member
crate-zkevm-circuits
Issues related to the zkevm-circuits workspace member
labels
Apr 14, 2023
roynalnaruto
changed the title
Feat/create part b
[CREATE Part B] Error cases that will be handled within opcode gadgets
Apr 14, 2023
This was referenced Apr 14, 2023
5 tasks
1 task
1 task
4 tasks
4 tasks
moved to #1425 |
KimiWu123
added a commit
that referenced
this pull request
May 25, 2023
### Description NOTE: This is an updated version of #1356 This is Part A of a 3 part pull request to add support for `CREATE`/`CREATE2` opcodes. Part A: #1356 Part B: #1357 Part C: #1358 ### Issue Link #1130 ### 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 As part of the bigger additions needed for the `CREATE`/`CREATE2` opcodes' gadget, this PR adds support for the copy circuit to "always" have a value accumulator field `value_acc`. ### Rationale We need a value accumulator (of the random linear combination) in order to get the `RLC(bytes)` for the bytes copied from `Memory` to `Bytecode` (specifically the init code). This RLC is later used to do a lookup to the Keccak table to check the value of `keccak256(init_code)`. ### How Has This Been Tested? The existing tests for copy circuit pass for the updated constraints on the copy circuit. --------- Co-authored-by: Rohit Narurkar <[email protected]> Co-authored-by: KimiWu <[email protected]>
lispc
pushed a commit
that referenced
this pull request
May 26, 2023
…adgets (#1425) ### Description **NOTE: This is an updated version of #1357 This PR is actually based on top of #1419 ### Issue Link #1130 ### 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 Error types for insufficient balance and nonce overflow. These are supporting changes required for the CREATE/CREATE2 opcodes' gadget. ### Rationale The above errors will be handled within the CREATE/CREATE2 opcodes' gadget. In case of insufficient balance, it is also handled in the CallOp gadget for call related opcodes. --------- Co-authored-by: Rohit Narurkar <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
crate-bus-mapping
Issues related to the bus-mapping workspace member
crate-mock
Issues related to the mock workspace member
crate-zkevm-circuits
Issues related to the zkevm-circuits workspace member
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Part B
This PR is actually based on top of #1356 . The only commit to be reviewed is: 65f72e4
Issue Link
#1130
Type of change
Contents
Error types for insufficient balance and nonce overflow. These are supporting changes required for the
CREATE
/CREATE2
opcodes' gadget.Rationale
The above errors will be handled within the
CREATE
/CREATE2
opcodes' gadget. In case of insufficient balance, it is also handled in theCallOp
gadget for call related opcodes.