{"eip":8079,"title":"Native rollups","description":"Expose Ethereum's STF as a precompile for rollups to use","authors":["Luca Donno (@lucadonnoh) \u003cdonnoh@l2beat.com\u003e","Justin Drake (@JustinDrake) \u003cjustin@ethereum.org\u003e"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-11-13","discussionsTo":"https://ethereum-magicians.org/t/eip-8079-native-rollups/26565","repo":"EIPs","label":"EIP-8079","officialUrl":"https://eips.ethereum.org/EIPS/eip-8079","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8079.md","url":"https://eips.huatuo.xyz/eip-8079/","tldr":{"en":"Proposes an EXECUTE precompile that lets L1 contracts verify an EVM state transition with Ethereum's own rules, so EVM-equivalent rollups can drop bespoke proof systems and inherit L1 upgrades automatically.","ja":"L1 のコントラクトが Ethereum 自身のルールで EVM のステート遷移を検証できる EXECUTE プリコンパイルを提案する。EVM 等価のロールアップは独自の証明システムを捨て、L1 のアップグレードを自動的に引き継げる。","ko":"L1 컨트랙트가 이더리움 자체의 규칙으로 EVM 상태 전이를 검증할 수 있는 EXECUTE 프리컴파일을 제안한다. EVM 동등 롤업은 맞춤형 증명 시스템을 버리고 L1 업그레이드를 자동으로 물려받을 수 있다.","zh":"提出 EXECUTE 预编译，让 L1 合约用以太坊自身的规则验证 EVM 状态转换，使 EVM 等价的 rollup 可以放弃定制的证明系统，并自动继承 L1 的升级。"},"tags":["rollups","layer-2","precompile","scaling","core"],"explainers":{"en":{"lang":"en","tldr":"Proposes an EXECUTE precompile that lets L1 contracts verify an EVM state transition with Ethereum's own rules, so EVM-equivalent rollups can drop bespoke proof systems and inherit L1 upgrades automatically.","tags":["rollups","layer-2","precompile","scaling","core"],"related":[4788,4844,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8079/","markdown":"## What problem does it solve?\n\nAn EVM-equivalent rollup has to prove to Ethereum that its blocks were executed correctly. Today each project builds and maintains its own fraud- or validity-proof system just to re-implement what L1 already does. That complexity is a major source of bugs, keeps security councils in place, and slows progress toward fully trustless (\"Stage 2\") rollups.\n\nRollups also need their own governance to keep up with Ethereum's upgrades, and that governance can diverge from Ethereum. Exit windows soften the risk but can't protect every use case, such as timelocked or vesting contracts.\n\nEIP-8079 lets a rollup call Ethereum's own state transition function from L1. A rollup built this way is called a *native rollup*: it is correct by construction and upgrades in step with L1.\n\n## How it works\n\n- **`EXECUTE` precompile.** Given a chain context, a block and an `anchor` value, it runs Ethereum's `state_transition` and reports the result. Blob-carrying transactions inside the rollup block are rejected.\n- **Anchoring.** Before executing, it injects a `bytes32 anchor` into a predeployed contract with a system transaction, in the style of [EIP-4788](/eip-4788/). The rollup decides what the anchor means (an L1 state root, a message root, a rolling hash), which enables L1→L2 messaging.\n- **Programmable \"consensus layer\".** Everything outside execution lives in the rollup's own L1 contract: who may sequence (centralized, staked set or based sequencing), a fixed `coinbase` treasury, gas limit choices, and so on.\n- **`burned_fees` header field.** A new 64-bit header field records the base fee burned in each block. Native rollups can then either burn their L2 base fee like L1 or credit that amount to a treasury from their escrow.\n- **Gas tokens.** No new deposit transaction type: rollups unlock pre-minted gas tokens via ordinary L1→L2 messages.\n- **Proof-carrying transactions** are planned so the precompile can rely on ZK proofs instead of re-execution, but that part depends on the future ZK-L1 design and is still TBD.\n\n## Sample code\n\nIllustrative rollup inbox contract (precompile address, input and output formats are all TBD in the spec):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract NativeRollup {\n    address constant EXECUTE = address(0); // TBD in the spec\n    bytes32 public stateRoot;\n    address public sequencer;\n\n    function submitBlock(bytes calldata chainAndBlock, bytes32 anchor) external {\n        require(msg.sender == sequencer, \"not sequencer\"); // rollup-defined rule\n        (bool ok, bytes memory out) =\n            EXECUTE.staticcall(abi.encode(stateRoot, chainAndBlock, anchor));\n        require(ok, \"invalid state transition\");\n        stateRoot = abi.decode(out, (bytes32)); // illustrative output\n    }\n}\n```\n\n## Things to know\n\n- Status is **Draft**, and an early one: the transaction type, precompile and anchor addresses, input/output encoding, test cases and security considerations are all TBD.\n- Native rollups cannot have custom opcodes, custom precompiles or custom transaction types inside the executed state transition. Rollups that are not fully EVM-equivalent would have to change to migrate.\n- On a native rollup, an L1→L2 message cannot carry the L1 sender as `msg.sender`; contracts relying on cross-chain access control must be adapted.\n- Whether `EXECUTE` re-executes blocks or verifies ZK proofs is still open in the spec.\n"},"ja":{"lang":"ja","tldr":"L1 のコントラクトが Ethereum 自身のルールで EVM のステート遷移を検証できる EXECUTE プリコンパイルを提案する。EVM 等価のロールアップは独自の証明システムを捨て、L1 のアップグレードを自動的に引き継げる。","tags":["rollups","layer-2","precompile","scaling","core"],"related":[4788,4844,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8079/","markdown":"## 何を解決するのか\n\nEVM 等価のロールアップは、自分のブロックが正しく実行されたことを Ethereum に証明する必要があります。現在は、L1 がすでにやっていることを再実装するためだけに、各プロジェクトが独自の不正証明または有効性証明のシステムを構築・保守しています。この複雑さはバグの大きな原因であり、セキュリティカウンシルを存続させ、完全にトラストレスな（「Stage 2」の）ロールアップへの進展を遅らせています。\n\nロールアップは、Ethereum のアップグレードに追随するための独自のガバナンスも必要としますが、そのガバナンスは Ethereum から乖離しうるものです。退出期間（exit window）はリスクを和らげますが、タイムロックやベスティングのコントラクトなど、すべてのユースケースを守れるわけではありません。\n\nEIP-8079 では、ロールアップが L1 から Ethereum 自身のステート遷移関数を呼び出せます。このように作られたロールアップは*ネイティブロールアップ*と呼ばれ、構造上正しく、L1 と歩調を合わせてアップグレードされます。\n\n## 仕組み\n\n- **`EXECUTE` プリコンパイル。** チェーンコンテキスト、ブロック、`anchor` 値を受け取り、Ethereum の `state_transition` を実行して結果を報告します。ロールアップのブロック内の blob 搭載トランザクションは拒否されます。\n- **アンカリング。** 実行の前に、[EIP-4788](/eip-4788/) のスタイルで、システムトランザクションによって事前デプロイ済みのコントラクトに `bytes32 anchor` を注入します。アンカーが何を意味するか（L1 のステートルート、メッセージルート、ローリングハッシュなど）はロールアップが決め、これにより L1→L2 のメッセージングが可能になります。\n- **プログラム可能な「コンセンサスレイヤー」。** 実行以外のすべては、ロールアップ自身の L1 コントラクトにあります。誰がシーケンスできるか（中央集権型、ステークされたセット、based sequencing）、固定の `coinbase` トレジャリー、gas limit の選択などです。\n- **`burned_fees` ヘッダーフィールド。** 新しい 64 ビットのヘッダーフィールドが、各ブロックでバーンされた base fee を記録します。これにより、ネイティブロールアップは L2 の base fee を L1 と同様にバーンするか、エスクローからその額をトレジャリーに計上できます。\n- **ガストークン。** 新しいデポジットトランザクションタイプはありません。ロールアップは通常の L1→L2 メッセージを使って、事前ミント済みのガストークンを解放します。\n- **証明搭載トランザクション** は、プリコンパイルが再実行の代わりに ZK 証明に依拠できるよう計画されていますが、この部分は将来の ZK-L1 設計に依存しており、まだ未定です。\n\n## サンプルコード\n\n説明用のロールアップ inbox コントラクト（プリコンパイルのアドレス、入力・出力形式は、仕様ではすべて TBD）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract NativeRollup {\n    address constant EXECUTE = address(0); // TBD in the spec\n    bytes32 public stateRoot;\n    address public sequencer;\n\n    function submitBlock(bytes calldata chainAndBlock, bytes32 anchor) external {\n        require(msg.sender == sequencer, \"not sequencer\"); // rollup-defined rule\n        (bool ok, bytes memory out) =\n            EXECUTE.staticcall(abi.encode(stateRoot, chainAndBlock, anchor));\n        require(ok, \"invalid state transition\");\n        stateRoot = abi.decode(out, (bytes32)); // illustrative output\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** で、まだ初期段階です。トランザクションタイプ、プリコンパイルとアンカーのアドレス、入出力のエンコーディング、テストケース、セキュリティに関する考慮事項はすべて TBD です。\n- ネイティブロールアップは、実行されるステート遷移の中にカスタムオペコード、カスタムプリコンパイル、カスタムトランザクションタイプを持てません。完全には EVM 等価でないロールアップは、移行するために変更が必要になります。\n- ネイティブロールアップでは、L1→L2 メッセージは L1 の送信者を `msg.sender` として運べません。クロスチェーンのアクセス制御に依存するコントラクトは対応が必要です。\n- `EXECUTE` がブロックを再実行するのか ZK 証明を検証するのかは、仕様ではまだ決まっていません。\n"},"ko":{"lang":"ko","tldr":"L1 컨트랙트가 이더리움 자체의 규칙으로 EVM 상태 전이를 검증할 수 있는 EXECUTE 프리컴파일을 제안한다. EVM 동등 롤업은 맞춤형 증명 시스템을 버리고 L1 업그레이드를 자동으로 물려받을 수 있다.","tags":["rollups","layer-2","precompile","scaling","core"],"related":[4788,4844,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8079/","markdown":"## 어떤 문제를 해결하나요?\n\nEVM 동등 롤업은 자신의 블록이 올바르게 실행되었음을 이더리움에 증명해야 합니다. 현재는 L1이 이미 하는 일을 다시 구현하기 위해 각 프로젝트가 자체 사기 증명 또는 유효성 증명 시스템을 만들고 유지합니다. 이 복잡성은 버그의 주요 원인이며, 보안 위원회를 계속 유지하게 만들고, 완전히 트러스트리스한(\"Stage 2\") 롤업으로 나아가는 속도를 늦춥니다.\n\n롤업은 이더리움의 업그레이드를 따라가기 위한 자체 거버넌스도 필요한데, 이 거버넌스는 이더리움과 갈라질 수 있습니다. 출금 대기 기간(exit window)은 위험을 완화하지만 타임락이나 베스팅 컨트랙트 같은 모든 사용 사례를 보호할 수는 없습니다.\n\nEIP-8079는 롤업이 L1에서 이더리움 자체의 상태 전이 함수를 호출하게 해 줍니다. 이렇게 만든 롤업을 *네이티브 롤업*이라고 하며, 구조상 올바르고 L1과 보조를 맞춰 업그레이드됩니다.\n\n## 어떻게 동작하나요?\n\n- **`EXECUTE` 프리컴파일.** 체인 컨텍스트, 블록, `anchor` 값을 받아 이더리움의 `state_transition`을 실행하고 결과를 보고합니다. 롤업 블록 안의 blob 포함 트랜잭션은 거부됩니다.\n- **앵커링.** 실행 전에 [EIP-4788](/eip-4788/) 방식으로 시스템 트랜잭션을 통해 사전 배포된 컨트랙트에 `bytes32 anchor`를 주입합니다. 앵커가 무엇을 뜻하는지(L1 상태 루트, 메시지 루트, 롤링 해시)는 롤업이 정하며, 이를 통해 L1→L2 메시징이 가능해집니다.\n- **프로그래밍 가능한 \"컨센서스 레이어\".** 실행 밖의 모든 것은 롤업 자체의 L1 컨트랙트에 있습니다. 누가 시퀀싱할 수 있는지(중앙화, 스테이킹 집합, based sequencing), 고정된 `coinbase` 트레저리, gas 한도 선택 등입니다.\n- **`burned_fees` 헤더 필드.** 새로운 64비트 헤더 필드가 각 블록에서 소각된 base fee를 기록합니다. 네이티브 롤업은 L2 base fee를 L1처럼 소각하거나, 에스크로에서 그 금액을 트레저리에 입금할 수 있습니다.\n- **가스 토큰.** 새로운 예치 트랜잭션 타입은 없습니다. 롤업은 일반 L1→L2 메시지로 사전 발행된 가스 토큰을 해제합니다.\n- **증명 포함 트랜잭션**은 프리컴파일이 재실행 대신 ZK 증명에 의존할 수 있도록 계획되어 있지만, 이 부분은 향후 ZK-L1 설계에 달려 있어 아직 미정입니다.\n\n## 샘플 코드\n\n설명용 롤업 inbox 컨트랙트(프리컴파일 주소와 입력 및 출력 형식은 사양에서 모두 TBD):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract NativeRollup {\n    address constant EXECUTE = address(0); // TBD in the spec\n    bytes32 public stateRoot;\n    address public sequencer;\n\n    function submitBlock(bytes calldata chainAndBlock, bytes32 anchor) external {\n        require(msg.sender == sequencer, \"not sequencer\"); // rollup-defined rule\n        (bool ok, bytes memory out) =\n            EXECUTE.staticcall(abi.encode(stateRoot, chainAndBlock, anchor));\n        require(ok, \"invalid state transition\");\n        stateRoot = abi.decode(out, (bytes32)); // illustrative output\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**이며 초기 단계입니다. 트랜잭션 타입, 프리컴파일 및 앵커 주소, 입력/출력 인코딩, 테스트 케이스, 보안 고려 사항이 모두 TBD입니다.\n- 네이티브 롤업은 실행되는 상태 전이 안에 커스텀 opcode, 커스텀 프리컴파일, 커스텀 트랜잭션 타입을 둘 수 없습니다. EVM과 완전히 동등하지 않은 롤업은 이전하려면 변경해야 합니다.\n- 네이티브 롤업에서는 L1→L2 메시지가 L1 발신자를 `msg.sender`로 전달할 수 없습니다. 크로스체인 접근 제어에 의존하는 컨트랙트는 이에 맞게 수정해야 합니다.\n- `EXECUTE`가 블록을 재실행하는지 ZK 증명을 검증하는지는 사양에서 아직 열려 있습니다.\n"},"zh":{"lang":"zh","tldr":"提出 EXECUTE 预编译，让 L1 合约用以太坊自身的规则验证 EVM 状态转换，使 EVM 等价的 rollup 可以放弃定制的证明系统，并自动继承 L1 的升级。","tags":["rollups","layer-2","precompile","scaling","core"],"related":[4788,4844,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8079/","markdown":"## 它解决什么问题？\n\nEVM 等价的 rollup 必须向以太坊证明其区块被正确执行。如今每个项目都要构建并维护自己的欺诈证明或有效性证明系统，只是为了重新实现 L1 已经在做的事。这种复杂性是漏洞的主要来源，使安全委员会得以继续存在，也拖慢了向完全无需信任（\"Stage 2\"）rollup 迈进的步伐。\n\nrollup 还需要自己的治理来跟上以太坊的升级，而这种治理可能与以太坊产生分歧。退出窗口可以缓解风险，但无法保护所有用例，例如时间锁或归属（vesting）合约。\n\nEIP-8079 让 rollup 可以从 L1 调用以太坊自身的状态转换函数。以这种方式构建的 rollup 称为*原生 rollup*：它在构造上就是正确的，并与 L1 同步升级。\n\n## 它如何运作\n\n- **`EXECUTE` 预编译。** 给定链上下文、一个区块和一个 `anchor` 值，它运行以太坊的 `state_transition` 并报告结果。rollup 区块内携带 blob 的交易会被拒绝。\n- **锚定。** 执行之前，它会以 [EIP-4788](/eip-4788/) 的方式，通过系统交易向预部署合约注入一个 `bytes32 anchor`。anchor 的含义由 rollup 决定（L1 状态根、消息根、滚动哈希），这使得 L1→L2 消息传递成为可能。\n- **可编程的\"共识层\"。** 执行之外的一切都存在于 rollup 自己的 L1 合约中：谁可以排序交易（中心化、质押集合或 based sequencing）、固定的 `coinbase` 金库、gas 上限的选择等等。\n- **`burned_fees` 区块头字段。** 一个新的 64 位区块头字段记录每个区块销毁的 base fee。原生 rollup 随后可以像 L1 一样销毁其 L2 base fee，或从托管账户中把该金额计入金库。\n- **Gas 代币。** 没有新的存款交易类型：rollup 通过普通的 L1→L2 消息解锁预先铸造好的 gas 代币。\n- **携带证明的交易** 已在规划中，以便预编译可以依赖 ZK 证明而不是重新执行，但这一部分取决于未来的 ZK-L1 设计，仍待确定。\n\n## 示例代码\n\n示意性的 rollup inbox 合约（预编译地址、输入和输出格式在规范中均为 TBD）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract NativeRollup {\n    address constant EXECUTE = address(0); // TBD in the spec\n    bytes32 public stateRoot;\n    address public sequencer;\n\n    function submitBlock(bytes calldata chainAndBlock, bytes32 anchor) external {\n        require(msg.sender == sequencer, \"not sequencer\"); // rollup-defined rule\n        (bool ok, bytes memory out) =\n            EXECUTE.staticcall(abi.encode(stateRoot, chainAndBlock, anchor));\n        require(ok, \"invalid state transition\");\n        stateRoot = abi.decode(out, (bytes32)); // illustrative output\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Draft**，而且还处于早期：交易类型、预编译和 anchor 地址、输入/输出编码、测试用例和安全注意事项均为 TBD。\n- 原生 rollup 在被执行的状态转换中不能有自定义操作码、自定义预编译或自定义交易类型。并非完全 EVM 等价的 rollup 必须做出改动才能迁移。\n- 在原生 rollup 上，L1→L2 消息无法将 L1 发送者作为 `msg.sender` 携带；依赖跨链访问控制的合约必须做相应调整。\n- `EXECUTE` 是重新执行区块还是验证 ZK 证明，在规范中仍未确定。\n"}}}
