Free module
Zero-knowledge proofs from scratch
Learn zero-knowledge proofs hands on: commitments, the Schnorr protocol, Fiat-Shamir, Merkle membership proofs and circuits, built in Python.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Container lab
What a zero-knowledge proof is
I can explain completeness, soundness and zero knowledge using an interactive proof.
Read the lesson2 · Container lab
Commitments: sealing a value you reveal later
I can make a commitment to a value and check that it opens correctly.
Read the lesson3 · Container lab
The Schnorr protocol: proving you know a key
I can run and verify the Schnorr protocol with small numbers.
Read the lesson4 · Container lab
Fiat-Shamir: a proof anybody can check
I can compute a Fiat-Shamir challenge and verify a non-interactive proof.
Read the lesson5 · Container lab
Merkle trees and membership proofs
I can verify a Merkle membership proof against a root.
Read the lesson6 · Container lab
Circuits, constraints and where SNARKs fit
I can write a statement about a secret as constraints and check a witness against them.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.