Labs ICT
⭐ Pro Login

Layer 2 Scaling

Rollups, sidechains, and scaling solutions

Layer 2 Scaling

Ethereum processes roughly 15-30 transactions per second on Layer 1. Layer 2 (L2) solutions process transactions off the main chain while inheriting its security, dramatically increasing throughput and reducing fees.

Why Layer 2?


  Layer 1 (Ethereum Mainnet):
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  TPS: ~15-30                         β”‚
  β”‚  Gas Fees: $1-$50+ during congestionβ”‚
  β”‚  Finality: ~12-15 minutes            β”‚
  β”‚  Security: Maximum                   β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  Layer 2 (Rollups):
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  TPS: 2,000-4,000+                   β”‚
  β”‚  Gas Fees: $0.01-$0.10               β”‚
  β”‚  Finality: Seconds to minutes        β”‚
  β”‚  Security: Inherited from L1         β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Rollup Types


  Optimistic Rollups:
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Assume transactions are valid       β”‚
  β”‚  Post transaction data to L1         β”‚
  β”‚  Challenge period: 7 days            β”‚
  β”‚  Fraud proof if dispute              β”‚
  β”‚  Examples: Optimism, Arbitrum        β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  Zero-Knowledge (ZK) Rollups:
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Prove validity with math (zk-SNARK)β”‚
  β”‚  No challenge period needed          β”‚
  β”‚  Faster finality                     β”‚
  β”‚  More complex to implement           β”‚
  β”‚  Examples: zkSync, StarkNet, Polygon β”‚
  β”‚           zkEVM                      β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Other Scaling Solutions

State Channels: Two parties open a channel, transact off-chain, and settle on-chain. Example: Bitcoin Lightning Network.

Sidechains: Independent blockchains connected to L1 via bridges. Example: Polygon PoS, Gnosis Chain.

Plasma: Child chains that periodically commit state roots to L1. Largely superseded by rollups.

Bridging to L2


  Moving assets to Layer 2:
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    Bridge     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Ethereum  │──── Lock ────►│  L2 Chain  β”‚
  β”‚  (L1)      │◄── Unlock ───│            β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  1. Deposit ETH/token into L1 bridge contract
  2. Bridge mints equivalent on L2
  3. Use L2 for fast, cheap transactions
  4. Bridge back when ready to exit

  ⚠️ Bridge risk: Bridges are common attack targets

πŸ§ͺ Quick Quiz

What is a Layer 2 scaling solution?