🧶
A comprehensive guide to Layer 2 scaling solutions super easy to understand for beginners
✅
☀️
1. What is Layer 2?
The impossible trinity of blockchain:
decentralization, security, and scalability -> Layer 2 scaling solutions
- Layer 2: built on Layer 1 -> inherits the security of Layer 1
☀️
2. Types of Layer 2 solutions
- State Channel: like opening a tab at your local coffee shop. You track your drinks from the main ledger, then pay at the end of the week.
- Rollup: processes hundreds of transactions -> aggregates them into 1 transaction -> Layer 1
- Optimistic rollups: fraud proof + Store data on Ethereum
- Zero-knowledge (zk) rollups: validity proof + Store data on Ethereum
- Plasma (child chain): fraud proofs + separate blockchain anchored to Ethereum
- Validium: validity proof + DOES NOT store transaction data on Ethereum
- Sidechain: independent blockchain running parallel to Layer 1
☀️
3. Comparing Optimistic Rollup and ZK Rollup
⭐️
ZK Rollups
- Zk proof + does not disclose sensitive information
- Transactions: Fast
- Cost: computational proof -> higher
⭐️
Optimistic Rollup
- Assumes transactions are valid by default -> challenge -> fraud proofs
- Transactions: delayed
- Cost: low
☀️
4. Benefits of Layer 2:
- Low fees
- Ensures security
- Increases usability
☀️
5. Layer 2 ecosystem
Growing very robustly, more and more new projects are emerging. Some notable projects:
- Optimistic rollups:
+ OP Stack: OP, Base, Blast, Metis, WLD, Cyber,..
+ Arbitrum: ARB, Paralle
- Zk rollups: Zksync, Starknet, Linea, Scroll, Taiko,...
and there is a n.h.o.m for the free bet at Zola, please find it in the comments below.