Primitives / ZK Rollups
Scaling Blockchain Primitive

ZK Rollups

Layer 2 scaling using zero-knowledge proofs for instant finality

What are ZK Rollups?

ZK Rollups are Layer 2 scaling solutions that use zero-knowledge proofs to validate transactions. Instead of assuming validity like optimistic rollups, they cryptographically prove correctness for instant finality.

How They Work

Transaction Flow

  1. Users submit transactions to ZK rollup
  2. Transactions are executed off-chain
  3. Prover generates validity proof (SNARK/STARK)
  4. Proof and state root posted to L1
  5. L1 contract verifies proof
  6. State is finalized immediately

Zero-Knowledge Proofs

Proofs verify computation without revealing inputs:

  • SNARKs: Smaller proofs, require trusted setup
  • STARKs: Larger proofs, no trusted setup needed

Advantages

  • Fast Finality: No challenge period needed
  • Security: Cryptographic guarantees
  • Privacy Potential: Can hide transaction details
  • Lower Data Costs: Only proofs needed on L1

Disadvantages

  • Complexity: Harder to implement
  • EVM Compatibility: Challenging (improving)
  • Prover Costs: Generating proofs is expensive
  • Limited Opcodes: Not all operations supported

Types of ZK Proofs

TypeProof SizeVerify TimeSetup
Groth16~200 bytes~10msTrusted
PLONK~400 bytes~20msUniversal
STARK~50KB~50msNone

Major Implementations

  • zkSync Era: General-purpose zkEVM
  • Polygon zkEVM: EVM equivalent
  • Starknet: STARK-based, Cairo language
  • Scroll: bytecode-level compatible zkEVM
  • Linea: Consensys zkEVM

Future Potential

ZK technology enables:

  • Private transactions
  • Cross-chain bridges
  • Verifiable computation
  • Identity solutions

Chains Using ZK Rollups

6 blockchains implement this primitive