#22973·optimism

Rust: 关闭来自 reth v2.5.2 / revm 42 / alloy 2.4 bump 审查的证据缺口

作者: sebastianst创建于 2026年9月21日更新于 2026年9月23日
  1. bn254 / BLS12-381 backend moved arkworks 0.5 → 0.6 (revm-precompile 42) for every build that does not enable revm's bn feature: op-reth, and cannon/asterisc kona-client (Cargo.toml); only the SP1 guest keeps the patched substrate-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-tests only 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.
  2. c-kzg 2.1.7 → 2.1.8 with an unsafe transmute between alloy and c_kzg::Blob in kona's blob provider (blobs.rs); add a compile-time size/repr assertion.
  3. AddressMap/B256Map hasher changed to foldhash in alloy-primitives 1.7 (iteration order now per-process random without the rand feature). Confirm no ordering dependence in the witness map (proof.rs) and wiped_slots (write.rs).
  4. ExecutionPayloadFieldV2 deserialization: alloy ≤ 2.1.1 matched V1 first and silently dropped withdrawals from a getPayloadV2 response; 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.
  5. Receipt/log/block decode strictness: alloy 2.4 rejects non-canonical Eip658Value bytes, 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.
  6. Trace replay by index: reth now stops block replay at the transaction index; op-reth's transaction_by_hash override supplies that index from a flashblock (transaction.rs). Add a test tracing a transaction present in both

内容来源: ethereum-optimism/optimism