EIPs Explained

EIP-8012 · Stagnant · Core · 2025-08-22

EIP-8012: Generalized consolidation requests

Reuses the existing consolidation-request contract as a general EL-to-CL message channel by giving non-validator target_pubkey values a structured meaning, so the CL can add features without EL changes.

What problem does it solve?

Since Pectra, smart contracts on the execution layer (EL) can trigger validator actions on the consensus layer (CL) through system contracts and EIP-7685 requests. One of them is the consolidation request from EIP-7251, which carries a source_pubkey and a target_pubkey (both 48 bytes).

Each new kind of EL-triggered CL action would normally need a new system contract, new request type and Engine API changes, i.e. coordinated work on both layers. EIP-8012 points out that the consolidation pipe already carries 48 arbitrary-looking bytes, and could carry other messages without touching the EL at all. One suggested use: letting an existing validator register as a builder for ePBS (EIP-7732).

How it works

No changes on the EL or Engine API. On the CL, when a ConsolidationRequest arrives:

  • If target_pubkey is the BLS key of an existing active validator, it is a normal consolidation.
  • Otherwise, the 48 bytes are parsed as a generalized request:
Field Size Meaning
MAGIC_PREFIX 3 bytes 0xEF0A11
CALL_TYPE 4 bytes little-endian uint32, which handler to run
ARG_NUMBER 1 byte uint8, how many arguments are used
ARG1…ARG5 5 × 8 bytes little-endian uint64 arguments

3 + 4 + 1 + 40 = 48 bytes, exactly the size of a pubkey. Each new CALL_TYPE gets a handler invoked from process_consolidation_requests.

Sample code

Packing a generalized request off-chain (TypeScript):

function packGeneralized(callType: number, args: bigint[]): Uint8Array {
  if (args.length > 5) throw new Error("max 5 args");
  const out = new Uint8Array(48);
  const view = new DataView(out.buffer);
  out.set([0xef, 0x0a, 0x11], 0);          // MAGIC_PREFIX
  view.setUint32(3, callType, true);       // CALL_TYPE, little-endian
  view.setUint8(7, args.length);           // ARG_NUMBER
  args.forEach((a, i) => view.setBigUint64(8 + i * 8, a, true));
  return out;                              // use as target_pubkey
}

The result is passed as target_pubkey to the consolidation request contract, exactly like a normal consolidation call.

Things to know

  • Status is Stagnant; no call types are defined and nothing is scheduled.
  • It only standardizes how the CL would interpret such requests; each concrete use still needs a CL fork to add its handler.
  • Requests still go through the consolidation contract's fee and queue rules, since the EL side is unchanged.
  • Arguments are limited to five uint64 values, so richer payloads would not fit.

#consensus #execution-requests #consolidation #validators #cross-layer

Details

Authors
Potuz (@potuz)
Status
Stagnant
Type
Standards Track / Core
Created
2025-08-22

Machine-readable: Markdown · JSON