Reviewed Aug 2026
DE
BA-07 · LESSON 05

Taptrees and control blocks

KEY DEFINITIONS

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.

35 min Difficulty 2/5 Not started

Loading lesson visuals...

01

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.

GUIDED EXPLANATION1/4 ideas inspected
1

Hash each script leaf

A leaf commits to its script and leaf version with a tagged TapLeaf hash.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA control block is a trusted signature from the wallet that created the tree.

It is a deterministic Merkle proof. Nodes verify it mathematically against the Taproot output key.

02
FINISH LEARNING FIRST

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.