layer2.wiki

Sunken Archives of the Protocol Scribes

Layer 1: The Foundation

Beneath every scaling solution lies the bedrock of consensus — the settlement layer where truth is etched into immutable stone. The Ethereum mainnet serves as this foundation, a distributed ledger of finality where every transaction achieves the permanence of carved inscription.

Here in the deep archives, we document not just what Layer 1 does, but what it demands of those who build upon it: security guarantees, data availability, and the weight of decentralized consensus that makes scaling both necessary and possible.

Settlement finality · Consensus mechanisms · State roots

Genesis State Root

Layer 2: The Scaling Protocols

Optimistic Rollups

Transactions are executed off-chain and posted to Layer 1 in compressed batches. The protocol assumes all transactions are valid by default — an optimistic presumption that grants speed at the cost of a challenge period. During this window, any observer may submit a fraud proof to contest invalid state transitions, a mechanism that transforms trust into verification.

Fraud proofs · Challenge period · 7-day withdrawal

ZK-Rollups

Zero-knowledge rollups compress thousands of transactions into a single validity proof — a cryptographic attestation that every state transition within the batch is mathematically correct. No trust assumptions, no challenge periods. The proof itself is the guarantee, elegant as a theorem and unforgiving as an axiom.

Validity proofs · SNARKs / STARKs · Instant finality

State Channels

Two parties open a channel on Layer 1, then exchange signed state updates off-chain with zero gas costs. Only the final state is settled on-chain — like scholars exchanging private correspondence that need only be archived when the dialogue concludes. Ideal for high-frequency interactions between known participants.

Payment channels · Off-chain updates · Dispute resolution

Validium

A variant of ZK-rollups where transaction data is stored off-chain by a trusted committee rather than on Layer 1. This sacrifices the full data availability guarantee of rollups for dramatically reduced costs — the trade-off between archival completeness and practical accessibility that every library must eventually confront.

Off-chain data · Data availability committee · Cost efficiency

The Deep Archive

Optimistic Rollups

Arbitrum, Optimism, Base — the pragmatists' choice. They inherit Ethereum's security while offering 10-100x throughput improvements. The fraud proof mechanism ensures that dishonest sequencers face economic penalty, creating a game-theoretic fortress around transaction validity.

Sequencers · Fraud windows · EVM equivalence

ZK-Rollups

zkSync, StarkNet, Polygon zkEVM — the mathematicians' domain. Validity proofs compress computation into succinct attestations that can be verified in constant time. The future of scaling lives here, where cryptographic elegance meets engineering ambition.

Recursive proofs · Prover costs · Type 1-4 zkEVM

Data Availability

EIP-4844 blobs, Celestia, EigenDA — the foundation beneath the foundation. Without guaranteed data availability, rollups cannot reconstruct state. This layer ensures that the archive remains readable, that no page of the codex can be torn away without detection.

Blob transactions · DAS · Erasure coding

layer2.wiki

A contemplative archive of Layer-2 scaling knowledge, inscribed by the Protocol Scribes in the tradition of those who preserve what consensus demands we remember.

Last inscribed: