risc0 / zeth

A "Type 0" zkEVM. Prove validity of Ethereum blocks using RISC Zero's zkVM
Apache License 2.0
382 stars 68 forks source link

Deterministic cache files #84

Closed Wollac closed 9 months ago

Wollac commented 9 months ago

Currently, the files containing the cached RPC calls are not stored in a deterministic way. Especially for cached files in the repository, this leads to changed files even though the content is identical: The FileProvider stores the contents of each HashMap as an (unsorted) list. This should instead be sorted and stored in a way that preserves backwards compatibility with existing files.