{"eip":8266,"title":"Expiring Nonces for Frame Transactions","description":"Short-lived replay protection for frame transactions via a sig-hash ring buffer","authors":["Toni Wahrstätter (@nerolation)","lightclient (@lightclient)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-05-15","requires":[8141],"discussionsTo":"https://ethereum-magicians.org/t/eip-8266-expiring-nonces-for-frame-transactions/28575","repo":"EIPs","label":"EIP-8266","officialUrl":"https://eips.ethereum.org/EIPS/eip-8266","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8266.md","url":"https://eips.huatuo.xyz/eip-8266/","tldr":{"en":"An optional mode for frame transactions where replay protection comes from a deadline at most 60 seconds away instead of the account nonce, so a sender can have many short-lived transactions in flight with no permanent state growth.","ja":"フレームトランザクションの任意のモード。リプレイ保護がアカウント nonce ではなく、最大 60 秒先までの期限から得られるため、送信者は永続的なステートの増加なしに、短命なトランザクションを多数同時に処理できる。","ko":"프레임 트랜잭션의 선택적 모드. 재사용 공격 방지를 계정 nonce 대신 최대 60초 이내의 마감 시각으로 해결하므로, 송신자는 영구적인 상태 증가 없이 수명이 짧은 트랜잭션을 많이 동시에 처리할 수 있다.","zh":"frame 交易的一种可选模式：重放保护来自最多 60 秒之内的截止时间，而不是账户 nonce，这样发送方可以同时有许多短寿命交易在途，而不会造成永久性的状态增长。"},"tags":["account-abstraction","nonces","intents","frame-transactions","core"],"explainers":{"en":{"lang":"en","tldr":"An optional mode for frame transactions where replay protection comes from a deadline at most 60 seconds away instead of the account nonce, so a sender can have many short-lived transactions in flight with no permanent state growth.","tags":["account-abstraction","nonces","intents","frame-transactions","core"],"related":[8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8266/","markdown":"## What problem does it solve?\n\n[EIP-8141](/eip-8141/) frame transactions use the normal linear account nonce: transaction 5 must land before transaction 6, and only one can sit in the public mempool at a time. For short-lived actions such as atomic intents or time-boxed sponsorships, that ordering is pointless. Either the transaction lands within seconds or it no longer matters. The only replay risk worth guarding against is someone rebroadcasting it during that short window.\n\nStoring a \"seen\" marker per transaction hash forever would solve replay but grow state without limit. EIP-8266 instead uses a fixed-size ring buffer whose entries are recycled once their deadline passes.\n\n## How it works\n\n- **Opt in with a sentinel.** A frame transaction whose `nonce` equals `2^64 - 1` is in expiring-nonce mode. The account nonce is neither checked nor incremented.\n- **Deadline.** The transaction must contain exactly one `VERIFY` frame targeting EIP-8141's existing expiry verifier, whose 8-byte data is the deadline `d`. It must satisfy `now \u003c= d \u003c= now + 60` seconds.\n- **Seen check.** A system contract `NONCE_RING` stores, per signature hash `h`, the deadline it was last used with. The transaction is valid only if that stored deadline is `\u003c now`, meaning the hash is unused or its previous use has expired.\n- **Ring buffer.** On payment approval, `h` is written into the next of 2^18 ring slots. The entry it overwrites is cleared from the seen table, but only if that entry's deadline has passed; otherwise the approval fails with `BufferFull` instead of opening a replay window. Total storage is fixed at 2 × 2^18 slots.\n- **Gas.** A flat 13,000 gas per use. It skips the usual new-slot surcharge because each write is paired with a clear, so state does not grow in steady state.\n- **Mempool.** Nodes may accept many pending expiring-nonce transactions per sender, reserving each one's maximum cost against the payer's balance.\n\nWith 60-second deadlines and 2^18 slots, the spec computes the ring can sustain about 4,369 expiring-nonce transactions per second before `BufferFull` could trigger.\n\n## Sample code\n\nValidity and consumption, condensed from the spec:\n\n```python\nSENTINEL = 2**64 - 1\nMAX_EXPIRY_SECS = 60\nRING_CAPACITY = 2**18\n\ndef is_valid(tx, now):\n    if tx.nonce != SENTINEL:\n        return eip8141_nonce_check(tx)\n    frames = [f for f in tx.frames if f.mode == VERIFY and f.target == EXPIRY_VERIFIER]\n    assert len(frames) == 1\n    d = int.from_bytes(frames[0].data, \"big\")\n    assert now \u003c= d \u003c= now + MAX_EXPIRY_SECS\n    assert seen[sig_hash(tx)] \u003c now           # unused, or previous use expired\n    return True\n\ndef consume(h, d, now):                       # at payment APPROVE\n    idx = ring_ptr % RING_CAPACITY\n    old = ring[idx]\n    if old and seen[old] \u003e= now:\n        raise BufferFull                      # never evict a live entry\n    if old: seen[old] = 0\n    ring[idx], seen[h], ring_ptr = h, d, ring_ptr + 1\n```\n\n## Things to know\n\n- **Status: Draft.** It is a delta on [EIP-8141](/eip-8141/), also a Draft; the `NONCE_RING` address and fork timestamp are TBD.\n- Once approved, consumption is not undone by later frame reverts.\n- Expiring-nonce transactions do not advance the legacy account nonce, so a sender can have many of them plus a normal-nonce transaction outstanding at once. Apps that infer intent from the legacy nonce should authenticate it explicitly.\n- Verifiers that assumed `TXPARAM(0x01)` is the account nonce must reject or handle the sentinel.\n- If [EIP-8250](/eip-8250/) keyed nonces also ship, the spec suggests (non-normatively) folding this mode in as a reserved key.\n"},"ja":{"lang":"ja","tldr":"フレームトランザクションの任意のモード。リプレイ保護がアカウント nonce ではなく、最大 60 秒先までの期限から得られるため、送信者は永続的なステートの増加なしに、短命なトランザクションを多数同時に処理できる。","tags":["account-abstraction","nonces","intents","frame-transactions","core"],"related":[8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8266/","markdown":"## 何を解決するのか\n\n[EIP-8141](/eip-8141/) のフレームトランザクションは、通常の線形なアカウント nonce を使います。トランザクション 5 はトランザクション 6 より先に取り込まれなければならず、公開メンプールに同時に置けるのは 1 つだけです。アトミックなインテントや時間制限付きのスポンサーシップのような短命なアクションでは、この順序付けは無意味です。トランザクションは数秒以内に取り込まれるか、もう関係なくなるかのどちらかです。守る価値のある唯一のリプレイのリスクは、その短い期間に誰かが再ブロードキャストすることです。\n\nトランザクションハッシュごとに「確認済み」のマーカーを永久に保存すればリプレイは防げますが、ステートが際限なく増えます。EIP-8266 は代わりに、期限が過ぎたエントリを再利用する固定サイズのリングバッファを使います。\n\n## 仕組み\n\n- **センチネルでオプトイン。** `nonce` が `2^64 - 1` に等しいフレームトランザクションは、expiring-nonce モードになります。アカウント nonce はチェックされず、インクリメントもされません。\n- **期限。** トランザクションには、EIP-8141 の既存の expiry verifier を対象とする `VERIFY` フレームがちょうど 1 つ含まれなければならず、その 8 バイトのデータが期限 `d` です。`now \u003c= d \u003c= now + 60` 秒を満たす必要があります。\n- **確認済みチェック。** システムコントラクト `NONCE_RING` は、署名ハッシュ `h` ごとに、最後に使われたときの期限を保存します。保存された期限が `\u003c now` の場合にのみ、トランザクションは有効です。つまり、ハッシュが未使用か、以前の使用が期限切れである場合です。\n- **リングバッファ。** 支払いが承認されると、`h` は 2^18 個のリングスロットの次のものに書き込まれます。上書きされるエントリは確認済みテーブルから削除されますが、それはそのエントリの期限が過ぎている場合に限られます。そうでなければ、リプレイの窓を開く代わりに、承認は `BufferFull` で失敗します。ストレージの合計は 2 × 2^18 スロットに固定されます。\n- **ガス。** 1 回の使用につき一律 13,000 ガス。書き込みのたびに削除が対になるため、通常の新規スロットの追加料金は省かれ、定常状態ではステートは増えません。\n- **メンプール。** ノードは、送信者ごとに多数の保留中の expiring-nonce トランザクションを受け入れてよく、それぞれの最大コストを支払者の残高に対して予約します。\n\n期限が 60 秒で 2^18 スロットの場合、仕様の計算では、`BufferFull` が発生しうるまでに、リングは毎秒約 4,369 件の expiring-nonce トランザクションを維持できます。\n\n## サンプルコード\n\n仕様から要約した、有効性の判定と消費:\n\n```python\nSENTINEL = 2**64 - 1\nMAX_EXPIRY_SECS = 60\nRING_CAPACITY = 2**18\n\ndef is_valid(tx, now):\n    if tx.nonce != SENTINEL:\n        return eip8141_nonce_check(tx)\n    frames = [f for f in tx.frames if f.mode == VERIFY and f.target == EXPIRY_VERIFIER]\n    assert len(frames) == 1\n    d = int.from_bytes(frames[0].data, \"big\")\n    assert now \u003c= d \u003c= now + MAX_EXPIRY_SECS\n    assert seen[sig_hash(tx)] \u003c now           # unused, or previous use expired\n    return True\n\ndef consume(h, d, now):                       # at payment APPROVE\n    idx = ring_ptr % RING_CAPACITY\n    old = ring[idx]\n    if old and seen[old] \u003e= now:\n        raise BufferFull                      # never evict a live entry\n    if old: seen[old] = 0\n    ring[idx], seen[h], ring_ptr = h, d, ring_ptr + 1\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** これも Draft である [EIP-8141](/eip-8141/) の差分です。`NONCE_RING` のアドレスとフォークのタイムスタンプは TBD です。\n- 一度承認されると、後続のフレームが revert されても消費は取り消されません。\n- expiring-nonce トランザクションは従来のアカウント nonce を進めないため、送信者は、それらを多数と、通常の nonce のトランザクション 1 つを同時に処理中にできます。従来の nonce からインテントを推測するアプリは、それを明示的に認証すべきです。\n- `TXPARAM(0x01)` がアカウント nonce だと想定していた verifier は、センチネルを拒否するか処理しなければなりません。\n- [EIP-8250](/eip-8250/) の keyed nonce も出荷される場合、仕様は（規範的ではなく）このモードを予約された key として組み込むことを提案しています。\n"},"ko":{"lang":"ko","tldr":"프레임 트랜잭션의 선택적 모드. 재사용 공격 방지를 계정 nonce 대신 최대 60초 이내의 마감 시각으로 해결하므로, 송신자는 영구적인 상태 증가 없이 수명이 짧은 트랜잭션을 많이 동시에 처리할 수 있다.","tags":["account-abstraction","nonces","intents","frame-transactions","core"],"related":[8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8266/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-8141](/eip-8141/) 프레임 트랜잭션은 일반적인 선형 계정 nonce를 사용합니다. 트랜잭션 5는 트랜잭션 6보다 먼저 포함되어야 하고, 공개 멤풀에는 한 번에 하나만 있을 수 있습니다. 원자적 인텐트나 시간 제한이 있는 스폰서십처럼 수명이 짧은 작업에서는 이 순서가 무의미합니다. 트랜잭션이 몇 초 안에 포함되거나, 더는 상관이 없어집니다. 대비할 가치가 있는 유일한 재사용 공격 위험은 그 짧은 시간 동안 누군가 다시 브로드캐스트하는 것입니다.\n\n트랜잭션 해시마다 \"확인됨\" 표시를 영구히 저장하면 재사용 공격은 막지만 상태가 끝없이 늘어납니다. EIP-8266은 대신 마감 시각이 지난 항목을 재활용하는 고정 크기 링 버퍼를 사용합니다.\n\n## 어떻게 동작하나요?\n\n- **센티널로 옵트인.** `nonce`가 `2^64 - 1`인 프레임 트랜잭션은 expiring-nonce 모드입니다. 계정 nonce는 확인되지도 증가하지도 않습니다.\n- **마감 시각.** 트랜잭션에는 EIP-8141의 기존 만료 verifier를 대상으로 하는 `VERIFY` 프레임이 정확히 하나 있어야 하며, 그 8바이트 데이터가 마감 시각 `d`입니다. `now \u003c= d \u003c= now + 60`초를 만족해야 합니다.\n- **확인 여부 검사.** 시스템 컨트랙트 `NONCE_RING`은 서명 해시 `h`마다 마지막으로 사용되었을 때의 마감 시각을 저장합니다. 저장된 마감 시각이 `\u003c now`일 때만 트랜잭션이 유효합니다. 즉 해시가 사용된 적이 없거나 이전 사용이 만료된 경우입니다.\n- **링 버퍼.** 결제가 승인되면 `h`는 2^18개 링 슬롯 중 다음 슬롯에 기록됩니다. 덮어써지는 항목은 확인 테이블에서 지워지지만, 그 항목의 마감 시각이 지난 경우에만 그렇습니다. 그렇지 않으면 재사용 공격의 창을 여는 대신 승인이 `BufferFull`로 실패합니다. 전체 스토리지는 2 × 2^18개 슬롯으로 고정됩니다.\n- **가스.** 사용당 고정 13,000 가스. 쓰기마다 삭제가 짝을 이루므로 일반적인 새 슬롯 추가 요금이 면제되고, 정상 상태에서는 상태가 늘어나지 않습니다.\n- **멤풀.** 노드는 송신자당 대기 중인 expiring-nonce 트랜잭션을 많이 받아들일 수 있으며, 각 트랜잭션의 최대 비용을 결제자의 잔액에서 예약합니다.\n\n마감 시각이 60초이고 슬롯이 2^18개일 때, 사양은 `BufferFull`이 발생할 수 있기 전까지 링이 초당 약 4,369개의 expiring-nonce 트랜잭션을 감당할 수 있다고 계산합니다.\n\n## 샘플 코드\n\n사양에서 요약한 유효성 및 소모:\n\n```python\nSENTINEL = 2**64 - 1\nMAX_EXPIRY_SECS = 60\nRING_CAPACITY = 2**18\n\ndef is_valid(tx, now):\n    if tx.nonce != SENTINEL:\n        return eip8141_nonce_check(tx)\n    frames = [f for f in tx.frames if f.mode == VERIFY and f.target == EXPIRY_VERIFIER]\n    assert len(frames) == 1\n    d = int.from_bytes(frames[0].data, \"big\")\n    assert now \u003c= d \u003c= now + MAX_EXPIRY_SECS\n    assert seen[sig_hash(tx)] \u003c now           # unused, or previous use expired\n    return True\n\ndef consume(h, d, now):                       # at payment APPROVE\n    idx = ring_ptr % RING_CAPACITY\n    old = ring[idx]\n    if old and seen[old] \u003e= now:\n        raise BufferFull                      # never evict a live entry\n    if old: seen[old] = 0\n    ring[idx], seen[h], ring_ptr = h, d, ring_ptr + 1\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 역시 Draft인 [EIP-8141](/eip-8141/)에 대한 델타입니다. `NONCE_RING` 주소와 포크 타임스탬프는 TBD입니다.\n- 일단 승인되면 이후 프레임이 revert되어도 소모는 취소되지 않습니다.\n- expiring-nonce 트랜잭션은 레거시 계정 nonce를 올리지 않으므로, 송신자는 이런 트랜잭션을 여러 개와 일반 nonce 트랜잭션 하나를 동시에 미처리 상태로 둘 수 있습니다. 레거시 nonce로 인텐트를 추론하는 앱은 이를 명시적으로 인증해야 합니다.\n- `TXPARAM(0x01)`이 계정 nonce라고 가정한 verifier는 센티널을 거부하거나 처리해야 합니다.\n- [EIP-8250](/eip-8250/)의 keyed nonce도 함께 출시된다면, 사양은 (규범적이지 않게) 이 모드를 예약된 key로 통합할 것을 제안합니다.\n"},"zh":{"lang":"zh","tldr":"frame 交易的一种可选模式：重放保护来自最多 60 秒之内的截止时间，而不是账户 nonce，这样发送方可以同时有许多短寿命交易在途，而不会造成永久性的状态增长。","tags":["account-abstraction","nonces","intents","frame-transactions","core"],"related":[8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8266/","markdown":"## 它解决什么问题？\n\n[EIP-8141](/eip-8141/) 的 frame 交易使用普通的线性账户 nonce：交易 5 必须在交易 6 之前上链，而且公共内存池中同一时刻只能放一笔。对于原子意图或限时代付这类短寿命操作，这种顺序毫无意义。要么交易在几秒内上链，要么它就不再重要。唯一值得防范的重放风险，是有人在那短暂窗口内重新广播它。\n\n为每个交易哈希永久存储一个\"已见\"标记可以解决重放，但状态会无限增长。EIP-8266 则使用固定大小的环形缓冲区，其条目在截止时间过后会被回收。\n\n## 它如何运作\n\n- **用哨兵值选择加入。** `nonce` 等于 `2^64 - 1` 的 frame 交易处于 expiring-nonce 模式。账户 nonce 既不检查，也不递增。\n- **截止时间。** 交易必须恰好包含一个以 EIP-8141 现有的过期验证器为目标的 `VERIFY` frame，其 8 字节数据就是截止时间 `d`。必须满足 `now \u003c= d \u003c= now + 60` 秒。\n- **已见检查。** 系统合约 `NONCE_RING` 为每个签名哈希 `h` 存储它最近一次使用时的截止时间。只有当存储的截止时间 `\u003c now` 时交易才有效，也就是说该哈希未被使用，或其上一次使用已过期。\n- **环形缓冲区。** 支付获批时，`h` 被写入 2^18 个环形槽位中的下一个。被覆盖的条目会从已见表中清除，但仅当该条目的截止时间已过；否则批准会以 `BufferFull` 失败，而不是打开一个重放窗口。总存储固定为 2 × 2^18 个槽位。\n- **Gas。** 每次使用固定 13,000 gas。它省去了通常的新槽位附加费用，因为每次写入都伴随一次清除，所以在稳态下状态不会增长。\n- **内存池。** 节点可以为每个发送方接受许多待处理的 expiring-nonce 交易，并针对付款方余额为每笔交易预留其最大成本。\n\n在截止时间为 60 秒、有 2^18 个槽位的情况下，规范计算出该环在可能触发 `BufferFull` 之前，大约能支撑每秒 4,369 笔 expiring-nonce 交易。\n\n## 示例代码\n\n从规范中精简而来的有效性与消耗：\n\n```python\nSENTINEL = 2**64 - 1\nMAX_EXPIRY_SECS = 60\nRING_CAPACITY = 2**18\n\ndef is_valid(tx, now):\n    if tx.nonce != SENTINEL:\n        return eip8141_nonce_check(tx)\n    frames = [f for f in tx.frames if f.mode == VERIFY and f.target == EXPIRY_VERIFIER]\n    assert len(frames) == 1\n    d = int.from_bytes(frames[0].data, \"big\")\n    assert now \u003c= d \u003c= now + MAX_EXPIRY_SECS\n    assert seen[sig_hash(tx)] \u003c now           # unused, or previous use expired\n    return True\n\ndef consume(h, d, now):                       # at payment APPROVE\n    idx = ring_ptr % RING_CAPACITY\n    old = ring[idx]\n    if old and seen[old] \u003e= now:\n        raise BufferFull                      # never evict a live entry\n    if old: seen[old] = 0\n    ring[idx], seen[h], ring_ptr = h, d, ring_ptr + 1\n```\n\n## 需要注意\n\n- **状态：Draft。** 它是对同样处于 Draft 的 [EIP-8141](/eip-8141/) 的增量；`NONCE_RING` 地址和分叉时间戳尚待确定（TBD）。\n- 一旦获批，之后 frame 被 revert 也不会撤销该消耗。\n- expiring-nonce 交易不会推进旧式账户 nonce，所以发送方可以同时有许多这类交易，外加一笔普通 nonce 的交易处于未完成状态。根据旧式 nonce 推断意图的应用，应当显式地对其进行认证。\n- 假定 `TXPARAM(0x01)` 就是账户 nonce 的验证器，必须拒绝或处理该哨兵值。\n- 如果 [EIP-8250](/eip-8250/) 的带 key nonce 也一并发布，规范（非规范性地）建议把这种模式并入为一个保留 key。\n"}}}
