EIPs Explained

EIP-8272 · Draft · Core · 2026-05-15

EIP-8272: Recent Roots for Frame Transactions

Gives EIP-8141 frame transactions a standard VERIFY frame that checks up to 16 recently published roots (e.g. privacy-pool or wallet authorization roots) against a shared ring-buffer contract, so mempool validation can depend on recent app state safely.

What problem does it solve?

EIP-8141 frame transactions let accounts define their own validation logic. To keep the public mempool safe from denial-of-service, that validation may not read arbitrary storage owned by other accounts: such storage could change and silently invalidate many pending transactions.

Some validation rules legitimately need recent external state. A privacy pool proves a spend against a recent commitment-tree root; a wallet may check against a recent authorization root. EIP-8272 adds a narrow, well-defined exception: a shared recent root contract whose entries cannot change during their usable window, plus a canonical frame that verifies roots before account validation runs.

How it works

  • Root sources. Anyone can publish roots. A source is identified by source_id = keccak256(writer_address || salt), so one writer can run several sources.
  • Writing. Calling the contract at 0x8272D9679689Ea2f307140CdF9002D27dC00Ffff with 64 bytes (salt, root) during slot S stores a hash committing to (source_id, S, root) at ring-buffer index S mod 8192. The last write in a slot wins.
  • Verifying. Calldata of 1 to 16 packed 72-byte tuples (source_id, uint64 slot, root) makes the contract check each tuple: the slot must be strictly in the past and at most 8,191 slots old, and the stored hash must match. Any failure reverts.
  • The frame. A recent_root_verify frame is a VERIFY frame targeting that contract with zero value, zero flags and zero state limit. In public-mempool transactions it must come first, or right after an optional expiry_verify frame, before deployment and account validation. Later frames can inspect it via EIP-8141 introspection opcodes.
  • Slots. The current slot comes from the EIP-7843 SLOTNUM value, never from timestamps.
  • Mempool rules. Nodes record each transaction's root dependencies, evict on expiry or when a reorg removes a referenced root, and count the frame's gas toward EIP-8141's MAX_VERIFY_GAS budget.

No new opcode, no envelope change; the contract is ordinary code deployed with a keyless deployment transaction.

Sample code

Building verification calldata for one tuple (ethers v6):

import { keccak256, solidityPacked, concat, toBeHex, zeroPadValue } from "ethers";

const RECENT_ROOT = "0x8272D9679689Ea2f307140CdF9002D27dC00Ffff";

function sourceId(writer: string, salt: string): string {
  return keccak256(solidityPacked(["address", "bytes32"], [writer, salt]));
}

function encodeTuple(srcId: string, slot: bigint, root: string): string {
  return concat([srcId, zeroPadValue(toBeHex(slot), 8), root]); // 32 + 8 + 32 = 72 bytes
}

// Reference vector from the spec: writer 0x…01, salt 0, slot 1, root 0x…02
const id = sourceId("0x0000000000000000000000000000000000000001", "0x" + "00".repeat(32));
// id === "0xb9382d35273c75a50631a3e84d3c75ec9266e2b18c35a627e16cdbf26a18ca85"
const frameData = encodeTuple(id, 1n, zeroPadValue("0x02", 32));
// frame: { mode: VERIFY, target: RECENT_ROOT, flags: 0, value: 0, data: frameData }

Things to know

  • Status: Draft, and it depends on EIP-8141, itself a Draft.
  • The contract treats root as opaque bytes. A successful check only proves "this tuple is stored and recent"; the application must bind it to what is being authorized.
  • Root writes are ordinary transactions, so their inclusion is not guaranteed; apps needing timely roots need their own publication strategy.
  • The same (writer, salt) gives the same source_id on every chain, so off-chain proofs must bind the chain separately.
  • Each new source can add up to 8,192 storage cells; the authors note a future registration surcharge may be needed if normal state-growth pricing is not enough.
  • EIP-8369 builds on this frame when describing inclusion-list eligibility profiles.

#core #account-abstraction #frame-transactions #mempool #privacy

Details

Authors
Thomas Thiery (@soispoke), Vitalik Buterin (@vbuterin), Toni Wahrstätter (@nerolation), lightclient (@lightclient)
Status
Draft
Type
Standards Track / Core
Created
2026-05-15
Requires
Required by

Machine-readable: Markdown · JSON