{"eip":8209,"title":"Commit-Reveal Transaction Frames","description":"A Frame Transaction extension allowing delaying and concealing execution frame payload","authors":["Alex Forshtat (@forshtat)","Shahaf Nacson (@shahafn)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-04-01","requires":[8141],"discussionsTo":"https://ethereum-magicians.org/t/eip-8209-commit-reveal-transaction-frames/28105","repo":"EIPs","label":"EIP-8209","officialUrl":"https://eips.ethereum.org/EIPS/eip-8209","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8209.md","url":"https://eips.huatuo.xyz/eip-8209/","tldr":{"en":"Adds COMMIT and REVEAL frame modes to EIP-8141 frame transactions: users lock in a hash of their call in one block and reveal it at the top of the next, so nobody can target-front-run them.","ja":"EIP-8141 のフレームトランザクションに COMMIT と REVEAL のフレームモードを追加する。ユーザーは呼び出しのハッシュをあるブロックで確定させ、次のブロックの先頭で公開するので、誰も狙い撃ちのフロントランをできなくなる。","ko":"EIP-8141 프레임 트랜잭션에 COMMIT과 REVEAL 프레임 모드를 추가한다. 사용자는 호출의 해시를 한 블록에서 확정하고 다음 블록 맨 앞에서 공개하므로, 누구도 표적 프론트러닝을 할 수 없다.","zh":"为 EIP-8141 的 frame 交易增加 COMMIT 和 REVEAL 两种 frame 模式：用户在一个区块中锁定其调用的哈希，并在下一个区块开头揭示，使任何人都无法针对性地抢跑。"},"tags":["mev","front-running","commit-reveal","frame-transactions","core"],"explainers":{"en":{"lang":"en","tldr":"Adds COMMIT and REVEAL frame modes to EIP-8141 frame transactions: users lock in a hash of their call in one block and reveal it at the top of the next, so nobody can target-front-run them.","tags":["mev","front-running","commit-reveal","frame-transactions","core"],"related":[8141,7805,8184,8105,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8209/","markdown":"## What problem does it solve?\n\nA normal Ethereum transaction is fully visible in the public mempool before it is ordered. Searchers and builders can read it and front-run, sandwich or censor it. The profits from this have helped concentrate block building in very few hands.\n\nOther proposals attack this with encrypted mempools (for example [EIP-8184](/eip-8184/) and [EIP-8105](/eip-8105/)). EIP-8209 takes a simpler route: no new cryptography, no new kinds of protocol participants, just a delay. If the transaction is **included before its contents are known**, a targeted front-run becomes impossible.\n\n## How it works\n\nIt extends [EIP-8141](/eip-8141/) frame transactions with two new frame modes.\n\n**Block N-1: commit.** The user builds a transaction with their usual VERIFY frame(s) followed by one or more COMMIT frames (mode `0x05`). Each COMMIT frame carries only `keccak256(payload)` of the real call. Only the verify frames execute. For each commitment the gas payer is charged a fixed `COMMIT_GAS_RESERVATION` of 1,000,000 gas at the highest possible next-block base fee (`base_fee + max(base_fee // 8, 1)`, from [EIP-1559](/eip-1559/)). The hash is recorded on-chain.\n\n**Block N: reveal.** In the first ~2 seconds of slot N (`REVEAL_DEADLINE`), the user broadcasts a separate frame transaction with REVEAL frame(s) (mode `0x06`) containing the actual payload. Then:\n\n- All REVEAL transactions must form a contiguous block at the **top** of block N, in an order shuffled by `RANDAO`.\n- Attesters enforce inclusion through fork choice, like [EIP-7805](/eip-7805/) inclusion lists: if they saw a valid reveal in time and the block omits it, they do not attest to that block.\n- Execution is charged at block N's real base fee with no priority fee; the rest of the escrow is refunded to the original gas payer.\n- One REVEAL can consume several commitments for calls that need more than 1M gas.\n\n**No reveal?** The escrowed reservation is burned and the commitment expires. If slot N is missed, commitments carry over to the next produced block.\n\nThe fixed 1M reservation hides the real gas limit (it is only known to fall within `[0, k × 1M]`). The number of commitments per block is capped at `block_gas_limit // 1_000_000`, so all reveals fit in the next block.\n\n## Sample code\n\nFrame layouts as defined in the spec (pseudocode):\n\n```python\npayload = [mode, flags, target, limits, value, data]   # the real call\ncommitment = keccak256(payload)\n\n# Block N-1: commit transaction\nframes_n1 = [\n    verify_frame,                                   # establishes gas payer via APPROVE\n    [0x05, 0, 0x00, [0, 0], 0, commitment],         # COMMIT: no EVM execution\n]\n\n# Block N: reveal transaction (broadcast within REVEAL_DEADLINE = 2 s)\nframes_n = [\n    [0x06, flags, target, limits, value, data],     # REVEAL: runs like DEFAULT, caller = ENTRY_POINT\n]\n\n# Gas accounting\nmax_next_base_fee = base_fee_n1 + max(base_fee_n1 // 8, 1)\nescrow = 1_000_000 * max_next_base_fee\nrefund = escrow - gas_used * base_fee_n\n```\n\n## Things to know\n\n- **Status: Draft.** It requires [EIP-8141](/eip-8141/), which is itself a Draft.\n- Accepted trade-offs: execution lands one block later, and failing to reveal costs the full escrowed reservation.\n- It does not stop back-running or \"speculative front-running\", where an attacker pre-commits several possible front-runs and reveals only the profitable ones. A low commit cap and randomized order reduce but do not remove this.\n- Committers can also choose not to reveal after watching slot N-1, which effectively buys a top-of-block slot.\n- The gas payer used in the VERIFY frame can leak who the sender is; using a widely shared paymaster helps. Paymasters must explicitly support COMMIT transactions.\n- `RANDAO` ordering is unpredictable to users but known to the builder once it is generated.\n"},"ja":{"lang":"ja","tldr":"EIP-8141 のフレームトランザクションに COMMIT と REVEAL のフレームモードを追加する。ユーザーは呼び出しのハッシュをあるブロックで確定させ、次のブロックの先頭で公開するので、誰も狙い撃ちのフロントランをできなくなる。","tags":["mev","front-running","commit-reveal","frame-transactions","core"],"related":[8141,7805,8184,8105,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8209/","markdown":"## 何を解決するのか\n\n通常の Ethereum トランザクションは、順序が決まる前に公開 mempool で完全に見えています。サーチャーやビルダーはそれを読んで、フロントラン、サンドイッチ、検閲ができます。これによる利益は、ブロック構築がごく少数の手に集中する一因になりました。\n\n他の提案は、暗号化 mempool（たとえば [EIP-8184](/eip-8184/) や [EIP-8105](/eip-8105/)）でこれに対処します。EIP-8209 はより単純な道を取ります。新しい暗号技術も、プロトコル参加者の新しい種類もなく、ただ遅延を置くだけです。トランザクションが**内容が知られる前に取り込まれれば**、狙い撃ちのフロントランは不可能になります。\n\n## 仕組み\n\n[EIP-8141](/eip-8141/) のフレームトランザクションを、2 つの新しいフレームモードで拡張します。\n\n**ブロック N-1: commit。** ユーザーは、通常の VERIFY フレームに 1 つ以上の COMMIT フレーム（モード `0x05`）が続くトランザクションを作ります。各 COMMIT フレームは、実際の呼び出しの `keccak256(payload)` だけを運びます。実行されるのは verify フレームだけです。各コミットメントについて、gas 支払者は、次ブロックで取りうる最高の base fee（[EIP-1559](/eip-1559/) の `base_fee + max(base_fee // 8, 1)`）で、固定の `COMMIT_GAS_RESERVATION`（1,000,000 gas）を課金されます。ハッシュはオンチェーンに記録されます。\n\n**ブロック N: reveal。** スロット N の最初の約 2 秒（`REVEAL_DEADLINE`）に、ユーザーは実際のペイロードを含む REVEAL フレーム（モード `0x06`）を持つ別のフレームトランザクションをブロードキャストします。その後:\n\n- すべての REVEAL トランザクションは、ブロック N の**先頭**に連続したかたまりとして並ばなければならず、順序は `RANDAO` でシャッフルされます。\n- アテスターは、[EIP-7805](/eip-7805/) の inclusion list と同様に、フォーク選択を通じて取り込みを強制します。有効な reveal を時間内に見ていたのにブロックがそれを省いた場合、アテスターはそのブロックに対してアテストしません。\n- 実行は、ブロック N の実際の base fee で、priority fee なしで課金されます。エスクローの残りは元の gas 支払者に返金されます。\n- 1 つの REVEAL が、1M gas を超える gas を必要とする呼び出しのために、複数のコミットメントを消費できます。\n\n**reveal がなければ?** エスクローされた予約分はバーンされ、コミットメントは失効します。スロット N が欠けた場合、コミットメントは次に生成されたブロックに持ち越されます。\n\n固定の 1M の予約は、実際の gas limit を隠します（`[0, k × 1M]` の範囲に収まることしかわかりません）。ブロックごとのコミットメント数は `block_gas_limit // 1_000_000` に制限され、すべての reveal が次のブロックに収まります。\n\n## サンプルコード\n\n仕様で定義されているフレームのレイアウト（疑似コード）:\n\n```python\npayload = [mode, flags, target, limits, value, data]   # the real call\ncommitment = keccak256(payload)\n\n# Block N-1: commit transaction\nframes_n1 = [\n    verify_frame,                                   # establishes gas payer via APPROVE\n    [0x05, 0, 0x00, [0, 0], 0, commitment],         # COMMIT: no EVM execution\n]\n\n# Block N: reveal transaction (broadcast within REVEAL_DEADLINE = 2 s)\nframes_n = [\n    [0x06, flags, target, limits, value, data],     # REVEAL: runs like DEFAULT, caller = ENTRY_POINT\n]\n\n# Gas accounting\nmax_next_base_fee = base_fee_n1 + max(base_fee_n1 // 8, 1)\nescrow = 1_000_000 * max_next_base_fee\nrefund = escrow - gas_used * base_fee_n\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** それ自体が Draft である [EIP-8141](/eip-8141/) を必要とします。\n- 受け入れられているトレードオフ: 実行が 1 ブロック遅れること、そして reveal しないと、エスクローされた予約分をすべて失うことです。\n- バックランや「投機的フロントラン」、つまり攻撃者が複数のフロントランをあらかじめコミットしておき、利益の出るものだけを reveal する手法は防げません。低いコミット上限とランダム化された順序は、これを減らしますが、なくしはしません。\n- コミットした側は、スロット N-1 を観察した後で reveal しないことも選べるため、実質的にブロック先頭の枠を買っていることになります。\n- VERIFY フレームで使う gas 支払者は、送信者が誰かを漏らす可能性があります。広く共有されている paymaster を使うと役立ちます。paymaster は COMMIT トランザクションを明示的にサポートしなければなりません。\n- `RANDAO` による順序は、ユーザーには予測できませんが、生成された時点でビルダーには既知となります。\n"},"ko":{"lang":"ko","tldr":"EIP-8141 프레임 트랜잭션에 COMMIT과 REVEAL 프레임 모드를 추가한다. 사용자는 호출의 해시를 한 블록에서 확정하고 다음 블록 맨 앞에서 공개하므로, 누구도 표적 프론트러닝을 할 수 없다.","tags":["mev","front-running","commit-reveal","frame-transactions","core"],"related":[8141,7805,8184,8105,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8209/","markdown":"## 어떤 문제를 해결하나요?\n\n일반 이더리움 트랜잭션은 순서가 정해지기 전에 공개 mempool에서 완전히 보입니다. 서처와 빌더는 이를 읽고 프론트러닝, 샌드위치, 검열을 할 수 있습니다. 이로 인한 수익은 블록 빌딩이 극소수에게 집중되는 데 일조했습니다.\n\n다른 제안들은 암호화 mempool(예: [EIP-8184](/eip-8184/), [EIP-8105](/eip-8105/))로 이 문제에 접근합니다. EIP-8209는 더 단순한 길을 택합니다. 새로운 암호학도, 새로운 종류의 프로토콜 참여자도 없이 지연만 둡니다. 트랜잭션이 **내용이 알려지기 전에 포함된다면** 표적 프론트러닝은 불가능해집니다.\n\n## 어떻게 동작하나요?\n\n[EIP-8141](/eip-8141/) 프레임 트랜잭션을 두 가지 새 프레임 모드로 확장합니다.\n\n**블록 N-1: commit.** 사용자는 평소의 VERIFY 프레임 뒤에 하나 이상의 COMMIT 프레임(모드 `0x05`)이 붙은 트랜잭션을 만듭니다. 각 COMMIT 프레임은 실제 호출의 `keccak256(payload)`만 담습니다. verify 프레임만 실행됩니다. 각 커밋먼트에 대해 gas 지불자는 다음 블록에서 가능한 최고 base fee([EIP-1559](/eip-1559/)의 `base_fee + max(base_fee // 8, 1)`)로 고정된 `COMMIT_GAS_RESERVATION` 1,000,000 gas를 청구받습니다. 해시는 온체인에 기록됩니다.\n\n**블록 N: reveal.** 슬롯 N의 처음 약 2초(`REVEAL_DEADLINE`) 안에 사용자는 실제 페이로드가 담긴 REVEAL 프레임(모드 `0x06`)이 있는 별도의 프레임 트랜잭션을 브로드캐스트합니다. 그러면:\n\n- 모든 REVEAL 트랜잭션은 블록 N의 **맨 위**에 연속된 덩어리로 놓여야 하며, 순서는 `RANDAO`로 섞입니다.\n- 어테스터는 [EIP-7805](/eip-7805/) inclusion list처럼 포크 선택을 통해 포함을 강제합니다. 유효한 reveal을 제때 보았는데 블록이 이를 누락하면 그 블록에 어테스트하지 않습니다.\n- 실행은 블록 N의 실제 base fee로, 우선순위 수수료 없이 청구되며, 에스크로의 나머지는 원래의 gas 지불자에게 환불됩니다.\n- 1M gas를 넘게 필요한 호출을 위해 하나의 REVEAL이 여러 커밋먼트를 소비할 수 있습니다.\n\n**reveal이 없다면?** 에스크로된 예약분은 소각되고 커밋먼트는 만료됩니다. 슬롯 N이 누락되면 커밋먼트는 다음으로 생성된 블록으로 이월됩니다.\n\n고정된 1M 예약은 실제 gas 한도를 숨깁니다(`[0, k × 1M]` 범위 안이라는 것만 알 수 있습니다). 블록당 커밋먼트 수는 `block_gas_limit // 1_000_000`으로 제한되어 모든 reveal이 다음 블록에 들어갑니다.\n\n## 샘플 코드\n\n사양에 정의된 프레임 레이아웃(의사 코드):\n\n```python\npayload = [mode, flags, target, limits, value, data]   # the real call\ncommitment = keccak256(payload)\n\n# Block N-1: commit transaction\nframes_n1 = [\n    verify_frame,                                   # establishes gas payer via APPROVE\n    [0x05, 0, 0x00, [0, 0], 0, commitment],         # COMMIT: no EVM execution\n]\n\n# Block N: reveal transaction (broadcast within REVEAL_DEADLINE = 2 s)\nframes_n = [\n    [0x06, flags, target, limits, value, data],     # REVEAL: runs like DEFAULT, caller = ENTRY_POINT\n]\n\n# Gas accounting\nmax_next_base_fee = base_fee_n1 + max(base_fee_n1 // 8, 1)\nescrow = 1_000_000 * max_next_base_fee\nrefund = escrow - gas_used * base_fee_n\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 그 자체로 Draft인 [EIP-8141](/eip-8141/)이 필요합니다.\n- 감수하는 트레이드오프: 실행이 한 블록 늦게 이루어지고, reveal에 실패하면 에스크로된 예약분 전액을 잃습니다.\n- 백러닝이나 \"투기적 프론트러닝\", 즉 공격자가 가능한 프론트러닝 여러 개를 미리 커밋해 두고 수익이 나는 것만 reveal하는 방식은 막지 못합니다. 낮은 commit 상한과 무작위 순서는 이를 줄이지만 없애지는 못합니다.\n- 커밋한 쪽은 슬롯 N-1을 지켜본 뒤 reveal하지 않기로 선택할 수도 있으며, 이는 사실상 블록 맨 위 자리를 사는 것입니다.\n- VERIFY 프레임에서 쓰는 gas 지불자는 발신자가 누구인지 드러낼 수 있습니다. 널리 공유되는 paymaster를 쓰면 도움이 됩니다. paymaster는 COMMIT 트랜잭션을 명시적으로 지원해야 합니다.\n- `RANDAO` 순서는 사용자에게는 예측할 수 없지만, 생성되고 나면 빌더는 알게 됩니다.\n"},"zh":{"lang":"zh","tldr":"为 EIP-8141 的 frame 交易增加 COMMIT 和 REVEAL 两种 frame 模式：用户在一个区块中锁定其调用的哈希，并在下一个区块开头揭示，使任何人都无法针对性地抢跑。","tags":["mev","front-running","commit-reveal","frame-transactions","core"],"related":[8141,7805,8184,8105,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8209/","markdown":"## 它解决什么问题？\n\n普通的以太坊交易在被排序之前，在公共 mempool 中是完全可见的。搜索者和构建者可以读取它，并对其抢跑、夹击或审查。由此产生的利润助长了区块构建集中在极少数人手中。\n\n其他提案用加密 mempool 来应对这一问题（例如 [EIP-8184](/eip-8184/) 和 [EIP-8105](/eip-8105/)）。EIP-8209 选择了更简单的路线：没有新的密码学，没有新类型的协议参与者，只有延迟。如果交易在**其内容被知晓之前就被打包**，针对性的抢跑就不可能发生。\n\n## 它如何运作\n\n它用两种新的 frame 模式扩展 [EIP-8141](/eip-8141/) 的 frame 交易。\n\n**区块 N-1：commit。** 用户构建一笔交易，包含通常的 VERIFY frame，后接一个或多个 COMMIT frame（模式 `0x05`）。每个 COMMIT frame 只携带真实调用的 `keccak256(payload)`。只有 verify frame 会被执行。对于每个承诺，gas 支付者会按下一区块可能的最高 base fee（来自 [EIP-1559](/eip-1559/) 的 `base_fee + max(base_fee // 8, 1)`）被收取固定的 `COMMIT_GAS_RESERVATION`，即 1,000,000 gas。该哈希被记录在链上。\n\n**区块 N：reveal。** 在 slot N 的前约 2 秒（`REVEAL_DEADLINE`）内，用户广播另一笔 frame 交易，其中的 REVEAL frame（模式 `0x06`）包含真实的 payload。然后：\n\n- 所有 REVEAL 交易必须在区块 N 的**顶部**构成一段连续的区块，其顺序由 `RANDAO` 打乱。\n- 证明者通过分叉选择来强制打包，类似 [EIP-7805](/eip-7805/) 的 inclusion list：如果他们及时看到了有效的 reveal，而区块遗漏了它，他们就不会对该区块作证明。\n- 执行按区块 N 的实际 base fee 收费，没有优先费；托管的其余部分退还给最初的 gas 支付者。\n- 对于需要超过 1M gas 的调用，一个 REVEAL 可以消耗多个承诺。\n\n**没有 reveal 会怎样？** 托管的预留金会被销毁，承诺失效。如果 slot N 被错过，承诺会顺延到下一个产生的区块。\n\n固定的 1M 预留隐藏了真实的 gas 上限（只知道它落在 `[0, k × 1M]` 内）。每个区块的承诺数量上限为 `block_gas_limit // 1_000_000`，使所有 reveal 都能放进下一个区块。\n\n## 示例代码\n\n规范中定义的 frame 布局（伪代码）：\n\n```python\npayload = [mode, flags, target, limits, value, data]   # the real call\ncommitment = keccak256(payload)\n\n# Block N-1: commit transaction\nframes_n1 = [\n    verify_frame,                                   # establishes gas payer via APPROVE\n    [0x05, 0, 0x00, [0, 0], 0, commitment],         # COMMIT: no EVM execution\n]\n\n# Block N: reveal transaction (broadcast within REVEAL_DEADLINE = 2 s)\nframes_n = [\n    [0x06, flags, target, limits, value, data],     # REVEAL: runs like DEFAULT, caller = ENTRY_POINT\n]\n\n# Gas accounting\nmax_next_base_fee = base_fee_n1 + max(base_fee_n1 // 8, 1)\nescrow = 1_000_000 * max_next_base_fee\nrefund = escrow - gas_used * base_fee_n\n```\n\n## 需要注意\n\n- **状态：Draft。** 它需要 [EIP-8141](/eip-8141/)，而后者本身也是 Draft。\n- 已接受的权衡：执行会晚一个区块落地，而且未能 reveal 将损失全部托管的预留金。\n- 它无法阻止尾随交易（back-running）或\"投机性抢跑\"，即攻击者预先提交多个可能的抢跑交易，只揭示有利可图的那些。较低的 commit 上限和随机化的顺序可以减少但不能消除这一点。\n- 提交者在观察了 slot N-1 之后，也可以选择不 reveal，这实际上相当于买下了区块顶部的位置。\n- VERIFY frame 中使用的 gas 支付者可能泄露发送者是谁；使用广泛共享的 paymaster 会有帮助。paymaster 必须明确支持 COMMIT 交易。\n- `RANDAO` 的顺序对用户来说不可预测，但一旦生成，构建者就知道了。\n"}}}
