This repository was archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 840
Bus-mapping for opcode calldatacopy
#393
Merged
ChihChengLiang
merged 32 commits into
privacy-scaling-explorations:main
from
scroll-tech:calldatacopy-bus-mapping
Mar 21, 2022
Merged
Bus-mapping for opcode calldatacopy
#393
ChihChengLiang
merged 32 commits into
privacy-scaling-explorations:main
from
scroll-tech:calldatacopy-bus-mapping
Mar 21, 2022
Conversation
This file contains hidden or 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
2. Remove gas calculation and set in `calldatacopy` bus-mapping. 3. Revert `test_ok_internal` since not want to set internal call.
I suggest that we should merge this PR even though |
29 tasks
ed255
approved these changes
Mar 18, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thanks for working on this :)
I've added a few comments with minor suggestions, but overall everything looks good!
Let's wait for a second review and afterwards we can merge this! |
ChihChengLiang
approved these changes
Mar 21, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the PR!
19 tasks
zemse
pushed a commit
to zemse/zkevm-circuits
that referenced
this pull request
Mar 22, 2023
…th is zero (privacy-scaling-explorations#393) * Truncate memory offset of Word to Uint64 for Call opcodes when memory length is zero. * Truncate memory offset for `CALLDATACOPY`. * Truncate memory offset for `CODECOPY`. * Truncate memory offset for `EXTCODECOPY`. * Truncate memory offset for `RETURNDATACOPY`. * Truncate memory offset for `RETURN` and `REVERT`. * Truncate memory offset for `SHA3` (`KECCAK256`). * Truncate memory offset for `CREATE` (and `CREATE2`).
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-zkevm-circuits
Issues related to the zkevm-circuits workspace member
T-opcode
Type: opcode-related and focused PR/Issue
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.
Close #309
Summary
ExecState
to bus-mappingExecStep
to support Virtual step BeginTx, EndTx and CopyToMemory.new_step
toCircuitInputStateRef
for multi-step support.CallDataCopy
bus-mapping only for root call. Will send another PR for internal call of CallDataCopy bus-mapping when PR ImplementationExecutionState::CALL
#278 is merged.