---
eip: 8288
label: EIP-8288
title: In-mempool signature and proof aggregation
status: Draft
type: Standards Track
category: Core
created: 2026-06-03
requires: 2718, 8141
official: https://eips.ethereum.org/EIPS/eip-8288
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8288.md
canonical: https://eips.huatuo.xyz/eip-8288/
lang: en
tldr: Lets frame transactions declare post-quantum signature and STARK proof checks as dependencies that the mempool and builder fold into one recursive STARK per block, so large quantum-resistant signatures and proofs never have to go on-chain individually.
tags: [post-quantum, stark, aggregation, mempool, account-abstraction]
---

# EIP-8288: In-mempool signature and proof aggregation

> Adds recursive STARK-based aggregation for quantum-resistant signatures and STARKs via an EIP-8141 frame mode

**TL;DR:** Lets frame transactions declare post-quantum signature and STARK proof checks as dependencies that the mempool and builder fold into one recursive STARK per block, so large quantum-resistant signatures and proofs never have to go on-chain individually.

## What problem does it solve?

Quantum-resistant cryptography is bulky. The spec cites hash-based signatures at about 2–3 kB and 150k–200k gas to verify, and STARK proofs at 128 kB or more (up to 512 kB when optimised for fast client-side proving), costing millions of gas. Putting these directly in transactions would make post-quantum accounts and privacy protocols impractically expensive, and would clash with inclusion lists ([EIP-7805](/eip-7805/), FOCIL) and Frame Transactions ([EIP-8141](/eip-8141/)).

EIP-8288 keeps the heavy data out of blocks. Transactions only **declare** what needs to be verified. Mempool nodes and builders check the actual signatures and proofs off-chain and aggregate them into **one recursive STARK per block** that proves all of them at once.

## How it works

- **Dependency frame.** A new EIP-8141 frame mode (`DEP_VERIFY_FRAME_MODE = 4`) whose `data` is a list of 96-byte triples `(scheme, data_hash, verification_key_hash)`. It runs no code, has no target, value or flags, and can't sit inside an atomic batch. `scheme` is `0x10` (leanSPHINCS, a hash-based signature); `0x11` (leanSTARK) is defined but reserved for now. A zero `data_hash` means "this transaction's own signature hash".
- **Visibility.** Contracts, typically the account's `VERIFY` frame, can read declared dependencies through EIP-8141's `FRAMEPARAM` and `FRAMEDATACOPY`, for example to check that a signature from the account's stored post-quantum key was declared.
- **Block validity.** The block header gains a `recursive_stark` field: a proof plus a hash of the block's deduplicated, sorted dependency list. A block is valid only if the proof verifies against that hash and a fixed protocol verification key.
- **Mempool.** Transactions travel in wrapper objects carrying either the raw proofs (mode 0) or a recursive STARK over them (mode 1). Every second (`AGGREGATION_INTERVAL = 1000` ms) mempool nodes re-aggregate everything still valid into one STARK and forward it. FOCIL creators and builders do the same job, so aggregation is recursive end to end.
- **Gas.** A leanSPHINCS dependency costs 3,000 gas of frame execution and a leanSTARK one 30,000, plus a per-dependency share of the header proof added to intrinsic gas. These are charged even if the transaction reverts.
- **Limits.** At most 16 signature deps and 1 STARK dep per transaction and per wrapper, and 256 triples per frame, keeping mempool DoS exposure about the same as sending the raw data.

## Sample code

Building the `data` payload of a dependency frame declaring one leanSPHINCS signature over the transaction's own signature hash (TypeScript):

```ts
import { concat, zeroPadValue, toBeHex, ZeroHash } from "ethers";

const LEANSPHINCS_SCHEME = 0x10;

function depTriple(scheme: number, dataHash: string, vkHash: string): string {
  const schemeWord = zeroPadValue(toBeHex(scheme), 32); // 31 zero bytes + 1 scheme byte
  return concat([schemeWord, dataHash, vkHash]);        // 96 bytes
}

// leanSPHINCS public key (root 16 B || public parameter 16 B) fits in 32 bytes
const pqPubkey = "0x" + "ab".repeat(32);

const depFrame = {
  mode: 4,                    // DEP_VERIFY_FRAME_MODE
  target: null,               // must be absent
  value: 0n,
  flags: 0,
  data: depTriple(LEANSPHINCS_SCHEME, ZeroHash, pqPubkey), // zero hash = this tx's sig hash
  limits: { execution: 3000n, state: 0n },  // 3,000 gas per leanSPHINCS triple
};
```

The actual signature never appears in the transaction; it travels in the mempool wrapper and ends up inside the block's recursive STARK.

## Things to know

- **Status: Draft**, building on [EIP-8141](/eip-8141/), itself a draft. It is a consensus-breaking change that needs a network upgrade.
- `AGGREGATED_VK` and `DEPS_HASH` are still TBD. The spec says current tooling uses BLAKE2s for the dependency digest, with BLAKE3 the leading replacement.
- Proving uses the Lean Ethereum tooling, the same backend intended for consensus-layer signature aggregation.
- Security rests on the soundness of those circuits, the digest hash and recursive STARKs in general.
- Users wanting other post-quantum schemes must either verify them on-chain at full cost or wrap them client-side in a STARK.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8288
