[fix] transactions trie witness generation after 4844 and OP stack support #34
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.
No ZK circuit code was changed.
To generate witness transaction MPT proofs, we reconstruct the transactions trie of a block from the raw transactions returns by a JSON-RPC call for a block. To construct the trie, we must compute the RLP encoding of each raw transaction. Previously, we used
ethers_core
to do this. Howeverethers_core
has not been updated after EIP 4844 (Dencun) for the new Type 3 Blob Transaction.The longer term plan is to switch to using
alloy_rpc_types
. However there is currently no RLP implementation for transaction and receipts in alloy (they are inreth-primitives
, but the types are incompatible). Therefore short term it is simpler to continue usingethers_core
but patch the implementations as we do here.axiom-query
toaxiom-eth
to remove redundancy.References: