taikoxyz / zkevm-circuits

DEPRECATED in favor of https://github.com/taikoxyz/raiko! Taiko's fork of the PSE's ZK-EVM
Other
159 stars 125 forks source link

1559 only txlist rlp decode #143

Open smtmfft opened 1 year ago

smtmfft commented 1 year ago

RLP decoding circuit for txlist. It supports both correct rlp bytes and incorrect rlp bytes. Design doc: https://www.notion.so/taikoxyz/RLP-circuit-design-doc-e59ddfda4b5a40e6ac0f170f23154ed8

So far the majority decoding logic seems ok, rest jobs are:

TODOs:

smtmfft commented 1 year ago

I based my PR on cecilia's PI refactory branch, where circuit tool is not align with latest MPT in PSE, so some features are missing, using plain code instead. Lookup seems highly coupled with cell manager, so refactory takes longer time, so far still using traditional lookup api.