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.
Bus-mapping for opcode
calldatacopy
(privacy-scaling-explorations#393)
* Support generating multiple exec-steps from one geth-step. * Fix build error. * Fix to use bus-mapping to generate bytecode. * Update test cases. * Add basic of calldatacopy bus-mappinng to just support zero call data length. * Update bus-mapping calldatacopy. * Push op of call_data_length and call data offset. * Add `is_root_call` to BytecodeTestConfig. * Replace `OpcodeId` with `ExecState` in bus-mapping ExcStep. * Generate CopyToMemory exection step. * Add TransactionConfig to bus-mapping handle_tx. * Update test code. * 1. Remove TransactionConfig and replace with `call_data`. 2. Remove gas calculation and set in `calldatacopy` bus-mapping. 3. Revert `test_ok_internal` since not want to set internal call. * Update test cases which call `handle_tx` and `new_tx` of circuit input builder. * Update constant max address of state circuit. * Add unit test for calldatacopy bus-mapping. * change api * fix calldatacopy * fix rebase * Set exec_state for BeginTx and EndTx. * Fix to return a new exec step in function `dummy_gen_associated_ops`. * Update bus-mapping calldatacopy unit-test. * Update for fmt and clippy. * Fix doc test. * Update according to code review. * Fix a comment. * Fix to directly use StepAuxiliaryData of bus-mapping in zkevm-circuits. * Revert a comment and a fix. * address comments * fix doc Co-authored-by: Haichen Shen <[email protected]> Co-authored-by: Zhang Zhuo <[email protected]>
- Loading branch information
1 parent
ae3385e
commit ea5b823
Showing
26 changed files
with
758 additions
and
461 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
Oops, something went wrong.