EIP-7692 EVM Object Format (EOFv1) meta

No call decision · EVM & execution · EIP status Stagnant · created 2024-04-17

A meta EIP that bundles together the individual EIPs making up EOFv1, a new structured bytecode format called EOF (EVM Object Format).

Why it is needed

Smart contract bytecode today is an unstructured stream of bytes in which code and data are mixed, and whether a jump destination is valid or the stack is used correctly only becomes apparent at execution time. Catching these problems ahead of time, at deployment, requires a new bytecode format (EOFv1) that separates code and data sections and adds validation rules, and completing it requires several interlocking EIPs covering validation, jumps, functions, stack validation, and a revamp of call instructions that must all be applied together. This meta EIP records in one place exactly which EIPs make up that full package and what was added or removed at each devnet stage. This record makes it possible to track the package as a whole.

What changes

Today

After EIP-7692

Who is affected

In depth

The role of a Meta EIP

This document is a Meta-type EIP that contains no specification of its own, and defines the list of individual EIPs making up EOFv1 (also called 'Mega EOF'), the first version of EOF. The actual behavioral rules live in each sub-EIP; this document identifies the bundle as a single package.

EIPs included in eof-devnet-0

eof-devnet-0, the first testnet stage of EOFv1, includes EIP-3540 (EOF container format), EIP-3670 (code validation), EIP-4200 (static relative jumps), EIP-4750 (functions), EIP-5450 (stack validation), EIP-6206 (JUMPF and non-returning functions), EIP-7480 (data section access instructions), EIP-663 (SWAPN, DUPN, EXCHANGE), EIP-7069 (revamped CALL-type instructions), EIP-7620 (EOF contract creation), and EIP-7698 (EOF creation transactions).

eof-devnet-1 changes

In the second stage, eof-devnet-1, EIP-7873 (EOF - TXCREATE and InitcodeTransaction transaction type) is newly added, and EIP-7698 (EOF creation transactions), which had been in devnet-0, is removed.

eof-devnet-2 changes

In the third stage, eof-devnet-2, EIP-7834 (EOF metadata section separation), EIP-7761 (EXTCODETYPE instruction), EIP-7880 (EOF EXTCODEADDRESS instruction), and EIP-5920 (PAY opcode) are added.

requires and package composition

The requires field of this meta EIP lists EIP-663, 3540, 3670, 4200, 4750, 5450, 6206, 7069, 7480, 7620, and 7698, matching the core set of EIPs making up EOFv1 at the eof-devnet-0 stage. Each EIP is interlinked as a prerequisite, so only a subset cannot be applied.

Rationale and Security Considerations are deferred to the sub-EIPs

Both the Rationale and Security Considerations sections of this document simply state "see individual EIP," deferring the rationale and security analysis to each EIP in the list rather than providing them directly.

Current status

This EIP's status is marked Stagnant, confirming in the original header that it is not currently active and has stalled.

Original EIP · ← EIPs