Glossary
Layer 2
A network built on top of a blockchain that processes transactions off the main chain to make them faster and cheaper, while relying on it for security.
A layer 2 is a separate network that sits on top of a base blockchain, called layer 1. It handles transactions itself and periodically records a compressed summary on the base chain. The aim is to raise capacity and cut fees without giving up the base chain's security.
Why they exist
A blockchain such as Ethereum or Bitcoin has every participant verify every transaction. That makes it hard to tamper with and also slow. When demand is high, users bid against one another for limited space and fees rise sharply.
Main types
- Rollups. They bundle many transactions and post the data to layer 1. An optimistic rollup assumes the bundle is valid and allows a period in which anyone can challenge it. A zero-knowledge rollup posts a mathematical proof that it is valid.
- Payment channels. Bitcoin's Lightning Network lets two parties exchange many payments privately and settle only the final balance on the main chain.
What users should know
- Assets must be moved. Funds are sent to the layer 2 through a "bridge". Bridges have been a frequent target of large thefts.
- Withdrawals can be slow. Leaving an optimistic rollup through its official bridge typically takes about a week, because of the challenge period.
- Decentralization varies. On many layer 2 networks a single operator orders the transactions, and the developers can change the code. The security of the base chain does not cover those risks.
- Each network is separate. Tokens and applications on one layer 2 are not automatically available on another.
