forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: add another bytecode circuit to improve super circuit capacity (#…
…1368) * add bytecode_table1 in evm circuit * update input_exprs * SameContextGadget add is_first_bytecode_table cell * update some opcodes * modify assign_exec_step * assign_exec_step with block, call * adjust block, call input position * update opcodes * update jump for destination lookup * update jumpi * fix jumpi * super circuit add bytecode circuit * copy event add flag is_first_bytecode_circuit * rename copy event/table new field * modify table_row addr position * constrain copy circuit new column * conditionally lookup second bytecode table in copy circuit * copy circuit refactor two table lookup into one * revert CopyEvent change * add algorithm find_two_closest_subset, remove old * apply find_two_closest_subset for block bytecodes * modify copy circuit assign with bytecode_map * add one more bytecode_table into evm circuit * supercircuit: get each sub circuit bytecodes and construct * add feature: dual_bytecode * updates per feature * fix feature related * update param per new feature * change program_counter_offset to expression * fix stop gadget byte lookup * remove comment * add feature dual_bytecode to scroll * fix types * fix copy circuit test * fix copytable lookup * add feature control * update err msg * fix return_revert opcode lookup * update call lookup per feature * update common error gadget * add BytecodeLengthGadget handle bytelen lookup * update invalidjumpi * fix CommonErrorGadget * update create/return * misc updates * temp fix error jump * mark feature * refactor & fix extcodecopy regarding bytelength gadget * fix return_data test * add missing feature * update ErrorPrecompileFailed * fix extcodecopy non existing address * revise lookup_opcode * modify copy circuit try to fix * remove feature on err msg * clean up debug info * extract helpers to get bytecode and map info * fix type * modify BytecodeCircuit::<Fr>::min_num_rows_block to return max rows * fix default build * use BytecodeLengthGadget * add feature * use lookup_opcode * remvoe is_code parameter * remove outdated * update comment * refactor lookup_opcode_with_push_rlc helper * fix some clippy, remaining some * fix clippy * refactor is_first_bytecode_table * update helper names * add BytecodeLookupGadget for opcodes that don't use samecontext gadget * create/return use BytecodeLookupGadget * error precompile use BytecodeLookupGadget * BytecodeLengthGadget adds is_first_bytecode_table cell * stop use BytecodeLookupGadget * remove feature for bytecode_map * fix bytecode_map * samecontext etc remove feature * remove some feature cfg * byte length gadget assign etc. * fix clippy * update bytecode len gadget constraint * fix fmt * remove wrong constraint * fix failures * remove program_counter_offset and local rand test pass * figure out why combination bytecode table not work and remove comment * add rows_required helper * try use greedy_simple_partition * tmp remove dual_bytecode from scroll feature list * restore dual_bytecode in scroll feature list * revise comment * greedy_simple_partition with generic type * replace log::error * add comment to explain stable sort helper * rename feature dual-bytecode * minor updates * some minor change per review * clean up extcodecopy's is_first_bytecode_table * clean up --------- Co-authored-by: Rohit Narurkar <rohit.narurkar@proton.me>
- Loading branch information
1 parent
e609b72
commit 6e6ee0e
Showing
26 changed files
with
895 additions
and
102 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
Oops, something went wrong.