risc0 / risc0-ethereum

Integration of the RISC Zero verifiable compute platform with Ethereum and EVM chains.
https://risczero.com
Apache License 2.0
60 stars 15 forks source link

WEB3-89: Use access list to pre-fetch data #196

Closed Wollac closed 1 week ago

Wollac commented 3 weeks ago

This PR adds the option to prefetch all storage inclusion proofs before preflight execution. If (most of) the accessed storage slots are known in advance, their values can be fetched with a single eth_getProof call before the actual execution, instead of using many individual eth_getStorageAt calls during execution. In scenarios where many storage slots are accessed, this greatly reduces the number of RPC calls and improves performance.

This PR also introduces a configurable chunk size when calling eth_getProof.

closes WEB3-51 closes WEB3-56