A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Zero-Knowledge Proofs

Research Depth 100 in the knowledge graph ☐ I know this ☆ Set as goal
6topics build on this
539prerequisites beneath it
See this on the map →
Complexity Class NP: Nondeterministic Polynomial TimeComputational Hardness Assumptions+1 more→→Interactive Proof SystemsSecure Multi-Party Computation+2 more
zero-knowledge zkp simulation completeness soundness zk-snark

Core Idea

A zero-knowledge proof lets a prover convince a verifier that a statement is true without revealing any information beyond the truth of the statement. It satisfies three properties: completeness (honest prover convinces honest verifier), soundness (no cheating prover convinces the verifier of a false statement), and zero-knowledge (the verifier learns nothing beyond the statement's validity, formalized via simulation — a simulator can produce transcripts indistinguishable from real interactions without knowing the witness). Every NP language has a zero-knowledge proof (assuming OWFs). ZK proofs are foundational for privacy-preserving authentication, blockchain privacy (Zcash), and verifiable computation.

Explainer

Imagine you know the password to a vault, and you want to convince a guard that you know it — without ever revealing the password. Not a single bit of it. Not even information that helps the guard narrow down what the password might be. This is the promise of zero-knowledge proofs: a prover can convince a verifier that a statement is true while revealing absolutely nothing beyond the truth of the statement. The three defining properties are: completeness (an honest prover with a valid witness always convinces the verifier), soundness (a cheating prover without a witness fails with overwhelming probability), and zero-knowledge (the verifier learns nothing they couldn't have computed on their own).

Zero-knowledge is formalized through the simulation paradigm. A protocol is zero-knowledge if there exists an efficient simulator that, without knowing the witness, can generate fake transcripts that are computationally indistinguishable from real prover-verifier interactions. If such a simulator exists, the real interaction provides no computational advantage to the verifier — whatever they could compute from the transcript, they could compute without it (by running the simulator). This definition elegantly handles arbitrary verifier strategies, including malicious verifiers who deviate from the protocol.

The most remarkable theoretical result is that every NP language has a zero-knowledge proof, assuming one-way functions exist. Goldreich, Micali, and Wigderson proved this in 1987 by constructing a ZK proof for graph 3-coloring (NP-complete) using commitment schemes. The prover commits to a random permutation of a valid 3-coloring, the verifier challenges by selecting a random edge, and the prover opens the commitments for that edge's two vertices, showing they have different colors. After enough rounds, the verifier is convinced the graph is 3-colorable, but learns nothing about which coloring the prover used (because each round reveals only two of three color classes under a random permutation). Since every NP problem reduces to 3-coloring, this gives ZK proofs for all NP statements.

Practical zero-knowledge has exploded in recent years, driven by blockchain applications. zk-SNARKs (Succinct Non-interactive Arguments of Knowledge) compress a proof to constant size (a few hundred bytes) verifiable in milliseconds, regardless of the statement's complexity. Zcash uses zk-SNARKs to prove that a cryptocurrency transaction is valid (inputs equal outputs, sender has sufficient balance, no double-spending) without revealing the sender, recipient, or amount. zk-STARKs achieve similar goals without a trusted setup, using hash functions instead of elliptic curves, but with larger proof sizes. These technologies represent a transition of zero-knowledge from a theoretical curiosity to a deployed infrastructure component for privacy and scalability in distributed systems.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Hash Functions and Collision Resistance → The RSA Cryptosystem → Computational Hardness Assumptions → One-Way Functions → Zero-Knowledge Proofs

Longest path: 101 steps · 539 total prerequisite topics

Prerequisites (3)

Leads To (4)