EIPs Explained

EIP-8163 · Review · Core · 2026-02-13

EIP-8163: Reserve `EXTENSION (0xae)` opcode

Promises that opcode 0xae will never become a real instruction on Ethereum L1, so L2s and other EVM chains can use it as a prefix for their own extension instructions without risking future collisions.

What problem does it solve?

EVM chains other than Ethereum L1 (rollups, sidechains, other L1s) sometimes want to add instructions of their own. Today that is risky: if a chain picks an unused opcode byte and Ethereum later assigns the same byte to something else, the chain either breaks compatibility with L1 tooling and contracts or has to migrate. So in practice most chains don't innovate at the instruction level at all.

EIP-8163 sets aside exactly one byte, 0xae, named EXTENSION, and guarantees that it will stay invalid on Ethereum L1 forever. Other EVMs can then use it as a prefix for multi-byte "extension" instructions. Ideas that prove themselves on an L2 can later be ported back to L1 with a different, proper opcode.

How it works

On every Ethereum L1 chain (mainnet and testnets), EXTENSION (0xae) must behave exactly like INVALID (0xfe) from EIP-141:

  1. Executing it is an exceptional halt: the frame exits and all its gas is consumed.
  2. It has no effect on JUMPDEST analysis: the set of valid jump destinations is the same as if the byte were any other invalid opcode.
  3. Any future bytecode validation or preprocessing must treat it just like INVALID.

Since 0xae is already undefined on L1, nothing changes for existing code and clients need no modifications (they may optionally label it in traces).

Outside L1, the meaning of EXTENSION is up to each EVM and is selected by the bytes that follow it. The EIP deliberately does not define an encoding scheme. The one rule they must keep: jump-destination validity must match L1's. So 0xae5b cannot be a valid extension (the 5b stays a JUMPDEST), and arguments that could look like JUMPDEST or PUSH bytes must be wrapped in PUSHn data, which analysis already skips.

Sample code

How the same bytes are seen on L1 and on an extension-aware EVM:

Bytes            L1 behaviour         JUMPDEST at 0x5b?   Extension-aware EVM
ae 5b ...        INVALID (halt)       valid               invalid extension
ae 01 5b ...     INVALID (halt)       valid               extension with arg 0x01
ae 60 5b ...     INVALID (halt)       no (PUSH1 data)     extension with arg 0x5b
ae               INVALID (halt)       n/a                 truncated -> halt

A disassembler can simply name the byte:

const OPCODES: Record<number, string> = {
  0xfe: "INVALID",
  0xae: "EXTENSION", // EIP-8163: always INVALID on Ethereum L1
};

Things to know

  • Status: Review. The reservation is not final until the EIP reaches Final.
  • Multi-byte opcodes via EXTENSION are explicitly forbidden on L1. If L1 ever wants multi-byte opcodes it must use a different prefix.
  • A trailing 0xae at the end of code halts; unlike PUSHn and the immediate-argument opcodes of EIP-8024, it is not zero-padded.
  • Chains adopting EXTENSION are expected to coordinate their encodings in the EIP's discussion thread; there is no registry in the spec itself.

#evm #opcode #l2 #compatibility #core

Details

Authors
Bruce Collie (@Baltoli), Piotr Dobaczewski (@pdobacz)
Status
Review
Type
Standards Track / Core
Created
2026-02-13
Requires

Machine-readable: Markdown · JSON