> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerzero.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Beacon Chain

> How the beacon chain orders and verifies every zone block on Zero: DispersedSimplex consensus, the validator committee, and prepare, commit and settle.

The **beacon chain** is Zero's shared settlement layer.
Every zone's blocks are ordered and verified there.

A **zone** is where application logic runs on Zero. Each zone has its own state, its own transactions and its own rules. Its **Block Producer**, or sequencer, collects users' transactions and builds them into zone blocks. The [EVM (Interop) Zone](https://docs.layerzero.network/chain/interop-zone.md) is one example.

The beacon chain itself runs no applications and keeps no balances: users send their transactions to zones, not to the beacon chain.
As a result, its state stays tiny, and little computation is needed to maintain it.

The beacon chain has three jobs:

1. **Order zone blocks.**
   It decides the order of every zone's blocks, so everyone agrees on each zone's history.
2. **Keep their data available.**
   Validators store each zone block's data for a fixed retention period, so anyone can rebuild the block, even if the zone's Block Producer goes offline.
3. **Check that each block was executed correctly.**
   Before the beacon chain records a zone's new state, validators verify evidence that this state is the correct result of running the block.

## Consensus

Validators agree on beacon blocks using **[DispersedSimplex](https://eprint.iacr.org/2023/1916)**, a consensus protocol. Zero runs it on [Commonware](https://github.com/commonwarexyz/monorepo), an open-source library.

At launch, an initial committee of roughly 30 to 50 validators proposes and finalizes beacon blocks.
In each round, one validator, the leader, proposes a block.
A beacon block is **finalized** once more than two-thirds of the committee have signed it.
A finalized block is never reverted: the beacon chain has no reorgs.
The protocol stays safe and keeps making progress as long as fewer than one third of the committee are faulty, whether offline or malicious.

The initial committee stays fixed until an upgrade to Zero, expected on March 31, 2027.
That upgrade will rotate the committee periodically, so new validators can join and existing ones can leave.

ZRO holders can delegate their tokens to validators and earn a share of the rewards that the validators receive.
At launch, every stake is spread equally across all validators.
See the [ZRO staking site](https://staking.layerzero.network/) for details on how delegation and rewards work.
Since the initial committee is fixed, delegation does not yet affect committee selection.
Once the committee rotation begins, the committee will be selected based on the delegated ZRO tokens.

## A zone block's life: prepare, commit, settle

Each zone block goes through three steps on the beacon chain.

```text theme={null}
 Block Producer                          Validators and beacon chain
 --------------                          ---------------------------
 1. Prepare  pieces of the block   --->  each validator stores one piece
                                   <---  certificate of availability
 2. Commit   commit + certificate  --->  in a final beacon block: ORDERED
 3. Settle   new state + evidence  --->  verified, in a final beacon block: SETTLED
```

### Prepare

The Block Producer erasure-codes the block with **scalable verifiable information dispersal (SVID)**, Zero's data availability scheme.
It splits the block into coded pieces, with enough redundancy that only some of them are needed to rebuild it, and sends one piece to each validator.
Once more than two-thirds of the committee have signed for their pieces, their signatures form a **certificate of availability**.
Enough honest validators then hold pieces that anyone can rebuild the block, even if the Block Producer disappears.

Validators keep their pieces for at least 259,200 beacon blocks: for example, about 3 days at one block per second.

### Commit

The Block Producer then submits a **commit** for the block, together with its certificate of availability.
Once a finalized beacon block includes the commit, the zone block and all its transactions are **ordered**: their place in Zero is fixed.
Because the zone's state transition is deterministic, the block's execution outcome is fixed too.
So any full node that has the block's data and the zone's state transition function can compute that outcome independently.

### Settle

Later, the Block Producer submits the zone's new state after executing the block, together with evidence that it executed the block correctly.
Validators accept this **settlement** only if both of the following hold:

1. **The result is shown to be correct**, in one of two ways:
   * **Validity proof**, the default: a SNARK, a short cryptographic proof that the block was executed correctly.
     Validators check the proof without running the block themselves.
   * **Re-execution**, the fallback when no validity proof is available: the Block Producer sends the zone block's transactions, and each validator runs the zone's state transition function on them to check that the outcome matches the state the Block Producer claims.
2. **The zone's guardians have signed the same result.**

Once a finalized beacon block includes an accepted settlement, the zone block is **settled**, and the beacon chain records the zone's new state.

Each zone has its own set of **guardians**: signers separate from the validators.
A guardian runs its own copy of the zone's node.
It follows the beacon chain, fetches each zone block's transactions, re-executes the block itself and compares its result with the Block Producer's.
It signs only if the two match.
Beacon chain validators know each zone's guardian public keys and check every signature themselves.

Guardians are an extra layer of protection on top of the proof or re-execution check, not a replacement for it.
Because both are required, a corrupted guardian can't make validators accept a wrong result: a wrong result still fails the proof or re-execution check.
If guardians are unavailable, settlement waits until they are back.

### Why commit and settle are separate

Generating a validity proof takes time.
Separating commit from settle lets a zone keep committing new blocks without waiting for their proofs.
For example, proving a block might take 10 seconds, while the zone produces a new block every second.
The zone keeps committing blocks one after another, and their proofs follow later.
Because zone blocks execute deterministically, once a block is committed on the beacon chain, any full node with the zone's state transition function can independently verify its result.

Cross-zone communication, however, can only build on settled state.
For example, a message from one zone to another is delivered only after the block that sent it is settled.
See [Between the Interop Zone and Atlas](https://docs.layerzero.network/chain/interop-zone.md#between-the-interop-zone-and-atlas) for how this works for assets.
