Taptrees and control blocks
Terms used in this lesson
- Taptree
- The Merkle tree of alternative scripts committed inside a Taproot output.
- Control block
- Proof data showing that a revealed script was committed inside a Taproot output.
- Taproot
- A Bitcoin output and spending design that can combine a public-key path with privately committed alternative scripts.
- Tapscript
- The version of Bitcoin Script used by a Taproot script-path spend.
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- Witness
- Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
Merkle paths prove that a revealed leaf was committed into the Taproot output key.
Loading lesson visuals...
Learn the idea
A taptree is a Merkle tree of possible Tapscript spending conditions. It lets a Taproot output commit to many alternatives while revealing only the branch actually used.
Hash each script leaf
A leaf commits to its script and leaf version with a tagged TapLeaf hash.
Inspect every idea above to open it.
It is a deterministic Merkle proof. Nodes verify it mathematically against the Taproot output key.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.