An Encyclopedia of Layer-2 Blockchain Architecture
The dominant Layer-2 scaling paradigm. Transactions execute off-chain but post data on-chain, inheriting the security of the base layer while achieving orders-of-magnitude cost reduction. Optimistic rollups assume validity and allow challenges; zero-knowledge rollups prove validity mathematically.
Bilateral or multi-party agreements conducted entirely off-chain, with the base layer serving only as the final arbiter of disputes. Ideal for high-frequency interactions between known participants -- payment channels, gaming state, and real-time applications.
A framework for constructing child chains that periodically commit to the parent chain. Plasma chains can support full application logic while relying on the parent for security guarantees. The exit game mechanism ensures that users can always withdraw their assets.
A variant of validity-proof rollups where transaction data is stored off-chain by a data availability committee rather than posted to the base layer. This further reduces costs at the expense of data availability guarantees -- a tradeoff that suits applications where data withholding is an acceptable risk.
The fundamental insight of Layer-2 blockchain architecture is that consensus and computation can be separated without sacrificing security. The base layer provides the minimal viable consensus: ordering transactions and settling disputes. Everything else -- execution, storage, application logic -- can happen in a more efficient environment that periodically checkpoints its state back to the base layer.
"Modularity is the architecture of trust at scale."
This separation produces a modular blockchain stack: the execution layer (where computation happens), the data availability layer (where transaction data is published), the consensus layer (where ordering is finalized), and the settlement layer (where proofs are verified and disputes are resolved). Each layer can be optimized independently, and Layer-2 protocols occupy the execution layer -- the stratum where user-facing applications live and breathe.
This encyclopedia is a living document. The Layer-2 landscape evolves with every block, every proof, every new protocol that dares to ask: how do we do more with less?
layer2.wiki