rust: close the evidence gaps from the reth v2.5.2 / revm 42 / alloy 2.4 bump review
Author: sebastianstCreated Sep 21, 2026Updated Sep 23, 2026
Evidence gaps left open by the reth v2.5.2 / revm 42 / alloy 2.4 bump review (#22495). None is a known defect; each is a place where we rely on an upstream property without a local check.
- bn254 / BLS12-381 backend moved arkworks 0.5 → 0.6 (revm-precompile 42) for every build that does not enable revm's
bnfeature: op-reth, and cannon/asterisc kona-client (Cargo.toml); only the SP1 guest keeps the patchedsubstrate-bn(Cargo.toml). Curve constants are unchanged, but field and pairing code changed and this repo has no EIP-196/197/2537 vector tests;revm-ee-testsonly asserts gas/halt shapes (op_revm_tests.rs). Add a small differential vector test (EEST vectors, arkworks vs substrate-bn); it also covers the pre-existing cannon-vs-SP1 backend split. - c-kzg 2.1.7 → 2.1.8 with an
unsafetransmute between alloy andc_kzg::Blobin kona's blob provider (blobs.rs); add a compile-time size/repr assertion. AddressMap/B256Maphasher changed tofoldhashin alloy-primitives 1.7 (iteration order now per-process random without therandfeature). Confirm no ordering dependence in the witness map (proof.rs) andwiped_slots(write.rs).ExecutionPayloadFieldV2deserialization: alloy ≤ 2.1.1 matched V1 first and silently droppedwithdrawalsfrom agetPayloadV2response; 2.4.2 fixes it. kona's seal task consumes it (task.rs); add a regression test so the fix does not rest on the pin alone.- Receipt/log/block decode strictness: alloy 2.4 rejects non-canonical
Eip658Valuebytes, string-wrapped logs and trailing bytes in sealed blocks, closing Go↔Rust leniency gaps on oracle-supplied receipts (provider.rs). Pin with outcome-based op-alloy tests. - Trace replay by index: reth now stops block replay at the transaction index; op-reth's
transaction_by_hashoverride supplies that index from a flashblock (transaction.rs). Add a test tracing a transaction present in both the pending flashblock and the sealed block. - SSTORE cold-load skip threshold moved 2000 → 2100 (revm 42, Berlin-gated): gas outcome unchanged, but a slot the old code read before OOG is no longer read, so
debug_executionWitnesscontent can differ between revm-41 and revm-42 nodes. Roll op-reth together with the matching kona prestate.
Co-created with Claude Fable 5.1
Source: ethereum-optimism/optimism