Free module
Rollups and data availability
Learn how rollups work by building one in Python: batches and state roots, fraud proofs by bisection, validity proofs, blobs, sampling and exits.
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
Why rollups exist
I can explain what a rollup runs off the main chain and what it posts on it.
Read the lesson2 · Container lab
A toy rollup: batches and state roots
I can apply a batch of transfers to a state and compute its state root.
Read the lesson3 · Container lab
Optimistic rollups and fraud proofs
I can find the first wrong step in a batch by bisection.
Read the lesson4 · Container lab
Validity rollups: a proof instead of a wait
I can explain what a validity proof replaces in a rollup.
Read the lesson5 · Container lab
Data availability: blobs and sampling
I can work out how many random samples give a target confidence that data was published.
Read the lesson6 · Container lab
Trust, censorship and leaving a rollup
I can work out the earliest slot a withdrawal can leave a rollup.
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.