0Pricing
Cryptology Academy · Lesson

ZKP Applications: ZK Rollups & Privacy Coins

Explore Zcash's Sapling, zkSync, and StarkNet use cases.

ZKP Applications: ZK Rollups & Privacy Coins is a free Cryptology Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Blockchain Scalability Problem

Ethereum processes ~15 TPS. Visa: ~1700 TPS. To scale, ZK Rollups batch thousands of transactions off-chain, compute a SNARK proof of their validity, and post the proof on-chain. Validators only verify the proof (1 ms) instead of each transaction.

ZK Rollup Architecture

Users submit transactions to a sequencer. The sequencer batches transactions, executes them off-chain, computes a state transition proof (SNARK/STARK proving the new state root is correct), and posts the proof + compressed calldata to Ethereum L1.

zkSync Era

zkSync Era (Matter Labs) is an EVM-compatible ZK Rollup using a custom SNARK (Boojum, based on STARK). Developers deploy Solidity contracts that compile to zkEVM bytecode. Throughput: 2000+ TPS with Ethereum-level security guarantees.

StarkNet

StarkNet uses STARKs (via Stark prover) and the Cairo language. No trusted setup. Programs are compiled to Cairo bytecode, proven with STARKs, and verified on Ethereum. Used by dYdX (v3), Immutable X (NFTs), Sorare (fantasy sports).

Polygon Hermez (zkEVM)

Polygon zkEVM uses PLONK-based proofs to emulate the EVM exactly. Any Ethereum smart contract works without modification. The prover produces a PLONK proof for each batch of transactions verifiable on Ethereum L1 in a single transaction.

Privacy Coins: Zcash

Zcash (ZEC) uses Groth16 SNARKs (Sapling protocol) to enable shielded transactions: sender, receiver, and amount are all hidden. The SNARK proves the transaction is valid (no double spend, amounts balance) without revealing any private fields.

Zcash Note Commitment

A Zcash shielded note commits to (value, recipient, randomness) using a Pedersen hash. The SNARK proves: (1) you know the commitment preimage (you own the note), (2) the note is unspent (in the nullifier set), (3) output amounts equal input amounts.

Monero vs Zcash

Monero uses ring signatures + Pedersen commitments (RingCT) — no SNARKs, all transactions are shielded by default. Zcash: SNARK-based, transparent and shielded addresses coexist. Monero: simpler crypto, stronger privacy defaults; Zcash: stronger cryptographic guarantees.

ZK Identity

ZK identity proofs: prove you are over 18 without revealing birthdate; prove you are a citizen without revealing your passport number; prove you are an accredited investor without revealing net worth. Implementations: Polygon ID, Semaphore (anonymous signaling).

Private ML Inference

ZK-ML: prove that a neural network inference was computed correctly on private inputs. Used for: medical diagnosis (prove model ran on your data without sharing data), credit scoring (prove model gave a result without revealing inputs). Still research-stage for large models.

Verifiable Computation

ZK proofs enable verifiable outsourced computation: a cloud provider proves it ran a computation correctly, and the client verifies in milliseconds without re-running the computation. Useful for AI inference, data analytics, and trustless bridges.

Quick Check

What does a ZK Rollup post to Ethereum L1 to prove transaction validity?

Recap

ZK Rollups (zkSync, StarkNet, Polygon zkEVM) use SNARKs/STARKs for L2 scalability. Zcash uses Groth16 for shielded transactions. ZKPs extend to identity, ML inference, and verifiable outsourced computation. Next: Homomorphic Encryption.

Frequently asked questions

Is the “ZKP Applications: ZK Rollups & Privacy Coins” lesson free?

Yes — the full text of “ZKP Applications: ZK Rollups & Privacy Coins” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “ZKP Applications: ZK Rollups & Privacy Coins”?

Explore Zcash's Sapling, zkSync, and StarkNet use cases. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “ZKP Applications: ZK Rollups & Privacy Coins” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. ZKP Intuition: The Ali Baba Cave
  2. Sigma Protocols & Schnorr Identification
  3. zk-SNARKs: Succinct Non-Interactive Arguments
  4. ZKP Applications: ZK Rollups & Privacy Coins
← Back to Cryptology Academy