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.
feat: refactor rlp circuit and tx circuit to support more tx types (p…
…rivacy-scaling-explorations#528) * wip * wip 22 * wip 3 * wip 4 * wip 5 * wip 6 * wip 7 * wip 8 * wip 9 * wip 10 * wip 11 * wip 12 * wip 13 * wip 14 * wip 15 * wip 16 * wip 17 * wip 18 * wip 19 * add macros * addressing some comments * rewrite constraint (part 1) * reduce condition degree * rewrite constraint (part 2) * rewrite constraint (part 3) * rewrite constraint (part 4) * rewrite constraint (part 5) * add docs * docs * data table assignments * add witness gen part 1 * add more fields for supporting pre-eip155 tx * add witness gen part 2 * add witness gen part 3 * finish gen_sm_witness * pass eip1559 rlp witness test * refactor * add pre-eip155 test case * add unit test in rlp_circuit_fsm * pass pre-eip155 tx unit test in rlp circuit * fix constraint errors part 1 * fix witness gen bug * update unit test * fix constraint errors (part 2) * add eip155 tx test * make witness gen more precise * update data table checks * fix clippy errors * fix clippy * fix clippy * fmt * update sm checks * reduce degree to 9 * add eip1559 test and add constraints on DecodeTagStart -> End * finish padding * move away RLP internal tables from table.rs * remove old rlp circuit * re-organize tests in rlp_circuit_fsm into its own dir * clean * clean * disable tx circuit * fmt * clippy * fix typo * fix a bug in keccak circuit's min_num_rows_block * move q_enable to RlpTable * finish rom of l1_msg_hash * add sm init checks * remove old RlpTable * fix typos and refine comments * bug-fix: use max_length to select b to accumulate bytes' value * update tx_data_gas_cost calc rule * clean * ignore tx_l1_fee unit tests in evm_circuit * refactor tx_circuit * add empty row * turn on the tx_circuit * fix clippy errors * fmt * fix * assign padding_tx in rlp circuit * clean * pass pre-eip155 tx test * clippy and add constraints on sig.v * ignore null signature * add ChainID * dep: use scroll tech's fork of ethers-rs * refactor * add l1 msg tx test in rlp circuit * pass l1 msg unit test in tx circuit * finish * update Cargo.lock * fix * refactor: move is_zero to util/ * add doc --------- Co-authored-by: Rohit Narurkar <rohit.narurkar@protonmail.com>
- Loading branch information
1 parent
801a048
commit 79caaf4
Showing
37 changed files
with
4,852 additions
and
4,303 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.