EIP-8357 · Draft · Core · 2026-07-30
EIP-8357: EVM Verification Key Registry
Proposes a system contract that tells smart contracts which EVM-proof verification key L1 currently approves, plus every historical one, so native rollups can follow L1 upgrades or deliberately pin an older EVM.
What problem does it solve?
A native rollup (EIP-8079) wants to reuse Ethereum's own EVM and its upgrade process instead of running a bespoke verifier with its own governance. To check a proof of EVM execution, its L1 contract must know which verification key corresponds to "the EVM as L1 currently defines it".
The proof-verification mechanism in EIP-8288 takes an explicit verification key hash, but nothing on-chain says which hashes L1 recognises, which is current, or which stateless input schema each program accepts. Hard-coding those values would force every rollup to push a governance upgrade at each L1 fork, or stay on an old EVM.
How it works
A system contract at a fixed address stores an append-only registry:
- Entries:
verification_key_hash → schema_id. The hash identifies a STARK verification key for a fork-specific EVM stateless-validation program. Theschema_id(a non-zerouint16, from EIP-8025) identifies the input schema and fork rules that program runs. Entries are never deleted or overwritten. - Current pointer: storage slot 0 holds the current
verification_key_hash.
Reading (any caller, zero value, exactly 32 bytes of calldata):
bytes32(0)→ returns the current entry;- a non-zero hash → returns that exact entry.
Both return 64 bytes: verification_key_hash ‖ schema_id (as a 32-byte word). Unknown hashes or malformed calls revert with no data.
Updating happens only via a system call from SYSTEM_ADDRESS at the start of the first block of a fork that selects a new key: 64 bytes registers a new hash and makes it current, 32 bytes reactivates a previously registered one. Each new hash must be specified by its own Core EIP activated in a hard fork. The call has its own gas limit and does not count toward block gas.
The contract is deployed ahead of the fork by anyone, through the EIP-7997 deterministic factory with a fixed salt, so its address is bound to its exact bytecode.
Sample code
Reading from a rollup contract (Solidity; there is no ABI, the contract takes raw 32-byte calldata):
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
library EvmVkRegistry {
address constant REGISTRY = 0x00005e9c1447C1A05A642ec9eB76D9C125468357;
/// @param vkHash bytes32(0) for the current entry, or an exact registered hash to pin
function get(bytes32 vkHash) internal view returns (bytes32 hash, uint16 schemaId) {
(bool ok, bytes memory ret) = REGISTRY.staticcall(abi.encodePacked(vkHash));
require(ok && ret.length == 64, "unregistered");
uint256 id;
(hash, id) = abi.decode(ret, (bytes32, uint256));
schemaId = uint16(id);
}
}
A rollup that follows L1 calls get(bytes32(0)) each time it verifies; one that pins an EVM version stores a specific hash and calls get(pinnedHash).
Things to know
- Status is Draft: interface, address and dependencies may change, and it depends on several other draft or last-call EIPs.
- Following the current entry means proofs made under the previous key may stop verifying at a fork; a rollup that cannot prove under the new key may halt. Pinning gives an upgrade window.
- Registered hashes are never revoked, even if the corresponding verifier is later found insecure. Pinning an old entry means accepting that risk.
- The all-zero hash is reserved as the "give me the current one" selector and can never be registered.