{"eip":7658,"title":"Light client data backfill","description":"Mechanism for beacon nodes for syncing historical light client data","authors":["Etan Kissling (@etan-status)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2024-03-21","discussionsTo":"https://ethereum-magicians.org/t/eip-7658-light-client-data-backfill/19290","repo":"EIPs","label":"EIP-7658","officialUrl":"https://eips.ethereum.org/EIPS/eip-7658","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7658.md","url":"https://eips.huatuo.xyz/eip-7658/","tldr":{"en":"Proposes recording the best sync-committee signature of each period in the BeaconState, so beacon nodes can backfill and prove canonical light client data for past periods.","ja":"各期間で最良の同期委員会の署名を BeaconState に記録することを提案する。これにより、ビーコンノードは過去の期間について、正規のライトクライアントデータをバックフィルし、証明できる。","ko":"각 기간의 최선의 싱크 위원회 서명을 BeaconState에 기록하자고 제안한다. 이를 통해 비콘 노드가 과거 기간의 정식(canonical) 라이트 클라이언트 데이터를 백필하고 증명할 수 있다.","zh":"提议把每个周期内最佳的同步委员会签名记录在 BeaconState 中，使信标节点能够回填并证明过去周期中规范的轻客户端数据。"},"tags":["light-client","consensus","sync-committee","core"],"explainers":{"en":{"lang":"en","tldr":"Proposes recording the best sync-committee signature of each period in the BeaconState, so beacon nodes can backfill and prove canonical light client data for past periods.","tags":["light-client","consensus","sync-committee","core"],"related":[7643,4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7658/","markdown":"## What problem does it solve?\n\nSince Altair, beacon nodes produce *light client data*: small updates signed by the sync committee that let a light client follow the chain without downloading full blocks. The existing sync protocol only works **forward**: a node creates this data as it follows new blocks.\n\nProducing it for the past is hard. A node needs the matching `BeaconState` and `SignedBeaconBlock`, but states before the node's checkpoint are not available and blocks are only kept on the p2p network for a limited time. There is also no single agreed answer for which update is \"the best\" for a given ~27-hour sync committee period, so archives such as the Portal Network cannot serve a consistent, verifiable set of historical updates.\n\n## How it works\n\nThe EIP adds a minimal amount of tracking to the consensus state:\n\n- A new container `SyncData { sync_aggregate, signature_slot }`.\n- Three new `BeaconState` fields: `previous_best_sync_data`, `current_best_sync_data` and `parent_block_has_sync_committee_finality`.\n- **On every block** (`process_best_sync_data`, run before the block header is processed), the node compares the block's `SyncAggregate` with the current best for this period, using a subset of the existing light-client `is_better_update` ranking:\n  1. a 2/3 supermajority of participants beats no supermajority;\n  2. without supermajority, more participants wins;\n  3. data where the next sync committee is finalized beats data where it is not;\n  4. otherwise more participants wins;\n  5. ties go to the lower `signature_slot`.\n- **At each sync committee period boundary**, `current_best_sync_data` moves to `previous_best_sync_data` and the current slot is reset.\n\nBecause the choice is now part of the state root, anyone can later prove with a Merkle proof that a given `LightClientUpdate` for a past period is the canonical, optimal one. The rationale sketches a backfill protocol that combines this with `historical_summaries` proofs to rebuild `LightClientBootstrap` and update data for old periods.\n\n## Sample code\n\nThe new container and state fields (consensus-spec Python):\n\n```python\nclass SyncData(Container):\n    sync_aggregate: SyncAggregate   # sync committee aggregate signature\n    signature_slot: Slot            # slot at which it was created\n\nclass BeaconState(Container):\n    ...\n    previous_best_sync_data: SyncData\n    current_best_sync_data: SyncData\n    parent_block_has_sync_committee_finality: bool\n\ndef process_block(state: BeaconState, block: BeaconBlock) -\u003e None:\n    process_best_sync_data(state, block)   # new, before the header is overwritten\n    process_block_header(state, block)\n    ...\n```\n\n## Things to know\n\n- Status is **Stagnant**. It has not been scheduled for a consensus upgrade.\n- It needs a hard fork. Only light client data after that fork could be proven canonical this way; earlier periods could at best be pinned by a hash once finalized.\n- No new `LightClientUpdate` structures are stored in state, only the chosen signature and its slot, keeping the state growth small.\n- It complements other history work such as [EIP-7643](/eip-7643/) (a fixed root for pre-Merge history) and [EIP-4444](/eip-4444/) (history expiry), which increase reliance on archives that must serve verifiable data.\n"},"ja":{"lang":"ja","tldr":"各期間で最良の同期委員会の署名を BeaconState に記録することを提案する。これにより、ビーコンノードは過去の期間について、正規のライトクライアントデータをバックフィルし、証明できる。","tags":["light-client","consensus","sync-committee","core"],"related":[7643,4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7658/","markdown":"## 何を解決するのか\n\nAltair 以降、ビーコンノードは*ライトクライアントデータ*を生成します。これは同期委員会が署名した小さな更新で、ライトクライアントが完全なブロックをダウンロードせずにチェーンを追跡できるようにするものです。既存の同期プロトコルは**前方向**にしか機能しません。ノードは新しいブロックを追いながら、このデータを作成します。\n\n過去の分を作成するのは困難です。ノードには対応する `BeaconState` と `SignedBeaconBlock` が必要ですが、ノードのチェックポイントより前のステートは利用できず、ブロックも p2p ネットワーク上では限られた期間しか保持されません。また、約 27 時間の同期委員会の期間ごとに、どの更新が「最良」であるかについて、合意された唯一の答えがないため、Portal Network のようなアーカイブは、一貫した検証可能な過去の更新のセットを提供できません。\n\n## 仕組み\n\nこの EIP は、コンセンサスのステートに最小限のトラッキングを追加します。\n\n- 新しいコンテナ `SyncData { sync_aggregate, signature_slot }`。\n- `BeaconState` の 3 つの新しいフィールド: `previous_best_sync_data`、`current_best_sync_data`、`parent_block_has_sync_committee_finality`。\n- **すべてのブロックで**（ブロックヘッダーが処理される前に実行される `process_best_sync_data`）、ノードはそのブロックの `SyncAggregate` を、この期間におけるこれまでの最良のものと比較します。比較には、既存のライトクライアントの `is_better_update` ランキングの一部を使います。\n  1. 参加者の 3 分の 2 のスーパーマジョリティがあるものが、ないものに勝ちます。\n  2. スーパーマジョリティがない場合は、参加者が多いほうが勝ちます。\n  3. 次の同期委員会がファイナライズされているデータが、されていないデータに勝ちます。\n  4. それ以外の場合は、参加者が多いほうが勝ちます。\n  5. 同点の場合は、`signature_slot` が小さいほうが勝ちます。\n- **同期委員会の期間の境界ごとに**、`current_best_sync_data` が `previous_best_sync_data` に移り、現在のスロットがリセットされます。\n\nこの選択がステートルートの一部になるため、過去の期間のある `LightClientUpdate` が正規かつ最適なものであることを、誰でも後から Merkle 証明で証明できます。設計の根拠では、これを `historical_summaries` の証明と組み合わせて、古い期間の `LightClientBootstrap` と更新データを再構築するバックフィルプロトコルが示されています。\n\n## サンプルコード\n\n新しいコンテナとステートのフィールド（コンセンサス仕様の Python）:\n\n```python\nclass SyncData(Container):\n    sync_aggregate: SyncAggregate   # sync committee aggregate signature\n    signature_slot: Slot            # slot at which it was created\n\nclass BeaconState(Container):\n    ...\n    previous_best_sync_data: SyncData\n    current_best_sync_data: SyncData\n    parent_block_has_sync_committee_finality: bool\n\ndef process_block(state: BeaconState, block: BeaconBlock) -\u003e None:\n    process_best_sync_data(state, block)   # new, before the header is overwritten\n    process_block_header(state, block)\n    ...\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。コンセンサスのアップグレードには予定されていません。\n- ハードフォークが必要です。この方法で正規と証明できるのは、そのフォーク以降のライトクライアントデータだけです。それ以前の期間は、ファイナライズされた後にハッシュで固定するのが精一杯でしょう。\n- ステートには新しい `LightClientUpdate` 構造は保存されず、選ばれた署名とそのスロットだけが保存されるため、ステートの増加は小さく抑えられます。\n- [EIP-7643](/eip-7643/)（The Merge 以前の履歴のための固定ルート）や [EIP-4444](/eip-4444/)（履歴の失効）など、他の履歴に関する取り組みを補完します。これらは、検証可能なデータを提供しなければならないアーカイブへの依存を高めます。\n"},"ko":{"lang":"ko","tldr":"각 기간의 최선의 싱크 위원회 서명을 BeaconState에 기록하자고 제안한다. 이를 통해 비콘 노드가 과거 기간의 정식(canonical) 라이트 클라이언트 데이터를 백필하고 증명할 수 있다.","tags":["light-client","consensus","sync-committee","core"],"related":[7643,4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7658/","markdown":"## 어떤 문제를 해결하나요?\n\nAltair 이후 비콘 노드는 *라이트 클라이언트 데이터*를 만듭니다. 이는 싱크 위원회가 서명한 작은 업데이트로, 라이트 클라이언트가 전체 블록을 내려받지 않고도 체인을 따라갈 수 있게 해 줍니다. 기존 싱크 프로토콜은 **앞으로만** 동작합니다. 노드는 새 블록을 따라가면서 이 데이터를 만듭니다.\n\n과거 분을 만드는 일은 어렵습니다. 노드에는 그에 맞는 `BeaconState`와 `SignedBeaconBlock`이 필요한데, 노드의 체크포인트 이전 상태는 구할 수 없고 블록도 p2p 네트워크에서는 제한된 기간만 보관됩니다. 또한 약 27시간짜리 싱크 위원회 기간마다 어떤 업데이트가 \"최선\"인지에 대해 합의된 단일한 답이 없어서, Portal Network 같은 아카이브는 일관되고 검증 가능한 과거 업데이트 집합을 제공할 수 없습니다.\n\n## 어떻게 동작하나요?\n\n이 EIP는 합의 상태에 최소한의 추적 정보를 추가합니다.\n\n- 새 컨테이너 `SyncData { sync_aggregate, signature_slot }`.\n- `BeaconState`의 새 필드 세 개: `previous_best_sync_data`, `current_best_sync_data`, `parent_block_has_sync_committee_finality`.\n- **모든 블록에서**(블록 헤더가 처리되기 전에 실행되는 `process_best_sync_data`), 노드는 그 블록의 `SyncAggregate`를 이 기간의 현재 최선 값과 비교합니다. 이때 기존 라이트 클라이언트의 `is_better_update` 순위 규칙 중 일부를 사용합니다.\n  1. 참여자의 2/3 초다수(supermajority)가 있는 쪽이 없는 쪽을 이깁니다.\n  2. 초다수가 없다면 참여자가 더 많은 쪽이 이깁니다.\n  3. 다음 싱크 위원회가 확정(finalized)된 데이터가 그렇지 않은 데이터를 이깁니다.\n  4. 그 외에는 참여자가 더 많은 쪽이 이깁니다.\n  5. 동률이면 `signature_slot`이 더 낮은 쪽이 이깁니다.\n- **싱크 위원회 기간의 경계마다** `current_best_sync_data`가 `previous_best_sync_data`로 옮겨지고 현재 슬롯이 초기화됩니다.\n\n이 선택이 이제 상태 루트의 일부이므로, 과거 기간의 특정 `LightClientUpdate`가 정식이며 최적임을 누구나 나중에 머클 증명으로 증명할 수 있습니다. 설계 근거에서는 이를 `historical_summaries` 증명과 결합해 오래된 기간의 `LightClientBootstrap`과 업데이트 데이터를 재구성하는 백필 프로토콜을 개략적으로 설명합니다.\n\n## 샘플 코드\n\n새 컨테이너와 상태 필드(합의 명세 Python):\n\n```python\nclass SyncData(Container):\n    sync_aggregate: SyncAggregate   # sync committee aggregate signature\n    signature_slot: Slot            # slot at which it was created\n\nclass BeaconState(Container):\n    ...\n    previous_best_sync_data: SyncData\n    current_best_sync_data: SyncData\n    parent_block_has_sync_committee_finality: bool\n\ndef process_block(state: BeaconState, block: BeaconBlock) -\u003e None:\n    process_best_sync_data(state, block)   # new, before the header is overwritten\n    process_block_header(state, block)\n    ...\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 합의 업그레이드에 포함되도록 예정되지 않았습니다.\n- 하드 포크가 필요합니다. 이 방식으로 정식임을 증명할 수 있는 것은 그 포크 이후의 라이트 클라이언트 데이터뿐이며, 이전 기간은 확정된 뒤 해시로 고정하는 것이 최선일 것입니다.\n- 새로운 `LightClientUpdate` 구조는 상태에 저장되지 않고 선택된 서명과 그 슬롯만 저장되므로 상태 증가는 작게 유지됩니다.\n- [EIP-7643](/eip-7643/)(머지 이전 히스토리를 위한 고정 루트)과 [EIP-4444](/eip-4444/)(히스토리 만료) 같은 다른 히스토리 관련 작업을 보완하며, 이들은 검증 가능한 데이터를 제공해야 하는 아카이브에 대한 의존도를 높입니다.\n"},"zh":{"lang":"zh","tldr":"提议把每个周期内最佳的同步委员会签名记录在 BeaconState 中，使信标节点能够回填并证明过去周期中规范的轻客户端数据。","tags":["light-client","consensus","sync-committee","core"],"related":[7643,4444],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7658/","markdown":"## 它解决什么问题？\n\n自 Altair 以来，信标节点会生成*轻客户端数据*：由同步委员会签名的小型更新，让轻客户端无需下载完整区块就能跟随链的进展。现有的同步协议只能**向前**工作：节点在跟随新区块的过程中创建这些数据。\n\n为过去的时间段生成这些数据很困难。节点需要对应的 `BeaconState` 和 `SignedBeaconBlock`，但节点检查点之前的状态不可用，区块在 p2p 网络上也只保留有限的时间。对于某个约 27 小时的同步委员会周期，哪个更新是\"最佳的\"，也没有一个统一认可的答案，因此像 Portal Network 这样的存档无法提供一套一致、可验证的历史更新。\n\n## 它如何运作\n\n该 EIP 在共识状态中增加了最少量的追踪：\n\n- 一个新容器 `SyncData { sync_aggregate, signature_slot }`。\n- `BeaconState` 的三个新字段：`previous_best_sync_data`、`current_best_sync_data` 和 `parent_block_has_sync_committee_finality`。\n- **在每个区块上**（`process_best_sync_data`，在处理区块头之前运行），节点用现有轻客户端 `is_better_update` 排序规则的一个子集，把该区块的 `SyncAggregate` 与本周期当前的最佳值比较：\n  1. 参与者达到 2/3 超级多数的，优于没有达到的；\n  2. 都没有超级多数时，参与者更多者获胜；\n  3. 下一个同步委员会已被最终确定的数据，优于没有最终确定的；\n  4. 否则参与者更多者获胜；\n  5. 平局时，`signature_slot` 较小者获胜。\n- **在每个同步委员会周期的边界**，`current_best_sync_data` 移入 `previous_best_sync_data`，并重置当前的 slot。\n\n由于这一选择现在属于状态根的一部分，任何人之后都可以用 Merkle 证明来证明，某个过去周期的特定 `LightClientUpdate` 是规范且最优的。设计理由中勾勒了一个回填协议，把这一点与 `historical_summaries` 证明结合起来，为旧的周期重建 `LightClientBootstrap` 和更新数据。\n\n## 示例代码\n\n新的容器和状态字段（共识规范的 Python）：\n\n```python\nclass SyncData(Container):\n    sync_aggregate: SyncAggregate   # sync committee aggregate signature\n    signature_slot: Slot            # slot at which it was created\n\nclass BeaconState(Container):\n    ...\n    previous_best_sync_data: SyncData\n    current_best_sync_data: SyncData\n    parent_block_has_sync_committee_finality: bool\n\ndef process_block(state: BeaconState, block: BeaconBlock) -\u003e None:\n    process_best_sync_data(state, block)   # new, before the header is overwritten\n    process_block_header(state, block)\n    ...\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。它没有被安排进共识升级。\n- 它需要一次硬分叉。只有该分叉之后的轻客户端数据才能以这种方式被证明为规范数据；更早的周期最多只能在最终确定后用哈希固定下来。\n- 状态中不会存储新的 `LightClientUpdate` 结构，只存储被选中的签名及其 slot，因此状态的增长很小。\n- 它与其他历史方面的工作互为补充，例如 [EIP-7643](/eip-7643/)（合并之前历史的固定根）和 [EIP-4444](/eip-4444/)（历史过期），这些工作会增加对必须提供可验证数据的存档的依赖。\n"}}}
