Can a Block-End Code Hash Prove Which VRF Implementation Ran?
Review historical D20DAO code on Arc and Robinhood Chain. Separate proxy identity, trusted runtime hashes and upgrade-block ambiguity from proof validity.
A block-end snapshot can miss the code used by a call
No. A familiar proxy address and an approved implementation at the end of a block do not, by themselves, establish which code processed an earlier transaction in that block. An upgrade can occur between those observations.
This matters when reviewing an older D20DAO VRF request. A mathematical replay can reproduce its accepted word while the reviewer still lacks evidence about the implementation that handled the request or fulfillment. Keep those findings separate. This guide describes a historical review procedure, not a completed execution trace or security audit.
Distinguish the proxy from its implementation
D20DAO's coordinators, and Arc's epoch registry, use UUPS implementations behind ERC1967 proxies. The proxy provides the stable address and retains storage while delegating execution to implementation code. Its runtime can remain unchanged across an implementation upgrade.
Record both code identities: the proxy runtime hash and the implementation runtime hash. Checking only the proxy's bytecode cannot establish unchanged behavior. Similarly, the implementation address alone is incomplete: retain the runtime bytes or their hash at the relevant historical block, together with the evidence identifying that address.
Identify every receipt your review depends on
Start with the chain, proxy address, request ID, transaction hashes, block hashes and transaction positions. Review the coordinator at request creation and proof acceptance. On Arc, include the registry's epoch-publication receipt as well. Robinhood Chain requests have no epoch registry or publication step.
Do not replace these references with today's deployment state. The public manifests provide deployment and upgrade records, source references and runtime hashes. Use the selected network's manifest as supporting material, then check the historical records against independently trusted canonical chain evidence.
Choose expected hashes before accepting the evidence
A runtime allowlist expresses which reviewed bytecode the verifier is prepared to trust. Configure expected proxy and implementation hashes independently of the particular evidence record being checked. Copying an expected hash from that same untrusted record merely compares two self-reported values.
Retain the review source, artifact version and reason for each trusted hash. A matching hash establishes a match to those selected bytes; it is not an external audit or a promise that the code is safe. A source commit or an installed SDK version also does not, on its own, establish the deployed runtime identity.
Compare block boundaries and the whole upgrade history
For each relevant receipt block, compare the ERC1967 implementation slot at the previous block boundary and at the end of the receipt block. Inspect Upgraded events from that proxy across the entire receipt block, not merely logs attached to the VRF transaction.
For this review procedure, leave attribution unknown when the slot changes or an upgrade occurs in the block. Matching boundary addresses alone can miss an upgrade away and back. Absence of an event is not a universal guarantee against arbitrary storage mutation; the reviewed proxy and implementation behavior remain part of the trust model.
Resolve execution order or retain an unknown finding
Imagine a block where a request executes under implementation A and a later transaction upgrades the proxy to B. A block-end read returns B, even though A handled that request. If the proxy then returns to A before the block ends, equal boundary values still do not describe every intervening execution. These are hypothetical cases.
Resolving such a block requires transaction-ordered execution evidence tied to the canonical block and the relevant call. Preserve that evidence and its assumptions if obtained. Otherwise report historical implementation attribution as unknown. An allowlisted end-of-block hash cannot remove the missing ordering evidence.
Keep code attribution separate from other verification results
Save mathematical replay, canonical receipt matching, historical code trust and configuration matching as separate findings. Include the receipt references, observed code hashes, expected allowlist version, boundary observations and any upgrade events in the review record.
If historical data is unavailable, state what could not be read. A pruned or failed lookup is not proof of a code mismatch. Matching runtime bytes also does not establish unchanged configuration: public keys, catalog context and relevant settings need their corresponding historical checks. Installing newer consumer source does not upgrade an existing proxy.
Use acceptance cases for historical attribution
Use these requirements when implementing a verifier. They are proposed cases, not executed test results:
- Check proxy and implementation runtimes against independently chosen trust pins.
- Keep attribution unknown when a relevant block contains an upgrade or a changed implementation slot.
- Detect an upgrade-away-and-back case even when boundary addresses match.
- Retain transaction-ordered evidence before resolving an ambiguous block.
- Distinguish unavailable historical data, a runtime mismatch and missing trust pins without silently approving any of them.