Free module
Bitcoin Script, Taproot and payment channels on regtest
Learn Bitcoin Script hands on with a regtest node: timelocks, multisig, Miniscript, Taproot, payment channels and fees, checked 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
UTXOs and a transaction on regtest
I can work out a transaction's fee from its inputs and outputs.
Read the lesson2 · Container lab
Script: locks, keys and timelocks
I can follow a script on a stack and say whether a spend passes.
Read the lesson3 · Container lab
Multisig, spending policies and Miniscript
I can check which signers and waits can spend a policy.
Read the lesson4 · Container lab
Taproot: key path and script path
I can work out a Taproot script tree's root from its leaves.
Read the lesson5 · Container lab
Payment channels: open, update, punish, close
I can say who can punish a broadcast of a revoked channel state.
Read the lesson6 · Container lab
Fees, replace by fee and pinning
I can decide whether a node accepts a replacement transaction.
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.