freecoding.school100% FREE · NO SIGNUP
Ledger LandISSUE #70 of 90

zk rollups · zksync · starknet · polygon zk

BlockyVSDouble-Spend Dan
Blocky saysZK rollups prove batches valid with cryptographic proofs — instant finality, no challenge wait.

Zero-Knowledge rollups (zkSync, StarkNet, Polygon zkEVM) post a validity proof (a SNARK/STARK) with each batch that mathematically proves every transaction was valid. The L1 verifies the proof cheaply; no fraud window is needed, so withdrawals are fast. They're more complex to build (especially zkEVMs) but offer stronger, proof-based security than the optimistic model.

Power-ups you unlock

Double-Spend Dan attacks — common mistakes

Boss battleContrast the trust model of optimistic vs ZK rollups.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>optimistic: assume valid, dispute later (7d wait)
ZK: prove valid now (validity proof) → fast finality</pre></body></html>
▶ Open the interactive comic issue
‹ Optimistic Rollups · Arbitrum · OptimismZk Proofs · Plonk · Groth16 · Stark ›