Here are some details of this task taken from an old issue. In particular, the MPT witness generation needs to be integrated into the Circuit Input Builder, more or less like this:
Merge results from all account and storage accesses that happen in a block, and combine their MPT proofs into a Partial State Trie to generate proofs for the circuit.
Depends: #740 and #812
Description:
Another task: