Reviewed Aug 2026
DE
DA-05 · LESSON 07

Liquidation Taproot leaf

KEY DEFINITIONS

Terms used in this lesson

Taproot
A Bitcoin output and spending design that can combine a public-key path with privately committed alternative scripts.
Preimage
The original secret data whose hash equals a previously committed value.
Hashlock
A spending condition that requires revealing data matching a committed hash.
Guardian
A Ducat policy-checking signer that can authorize or reject defined protocol transactions.
Schnorr signature
Bitcoin’s Taproot signature scheme, whose algebra supports compact verification and advanced multi-party signing.
CHECKSIG
The Bitcoin Script operation that checks whether a signature is valid for the required public key and transaction message.
Oracle
A system that reports outside information, such as a market price, for use by a protocol.
Witness
Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
Control block
Proof data showing that a revealed script was committed inside a Taproot output.
P2TR
Pay to Taproot, the Bitcoin output type introduced with Taproot.
Hash160
SHA-256 followed by RIPEMD-160, producing the 20-byte hash used by several Bitcoin spending conditions.
Vault
A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
Taptree
The Merkle tree of alternative scripts committed inside a Taproot output.
Tapscript
The version of Bitcoin Script used by a Taproot script-path spend.
OP_HASH160
A Bitcoin Script operation that replaces the top stack item with its Hash160 digest.
OP_EQUALVERIFY
A Bitcoin Script operation that compares two values and immediately fails if they differ.
BTC
The common market ticker for bitcoin.

The revealed preimage satisfies the hashlock and a Guardian Schnorr signature satisfies CHECKSIG, making the oracle outcome consumable by Bitcoin Script.

55 min Difficulty 5/5 Not started

Loading lesson visuals...

01

Learn the idea

A Taproot leaf is one hidden spending script committed inside a P2TR output. Ducat's liquidation leaf requires a threshold preimage whose Hash160 matches the committed value and a valid Guardian Schnorr signature.

GUIDED EXPLANATION1/4 ideas inspected
1

Commit the leaf

Vault construction includes the hashlock and Guardian public key in the taptree before any breach occurs.

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

Inspect every idea above to open it.

Important distinctionA valid preimage proves the BTC price and forces Bitcoin to liquidate.

Bitcoin proves only that the preimage matches the committed hash. A constructed transaction and valid Guardian signature are still required.

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.