Multisig and policy composition
Terms used in this lesson
- Hashlock
- A spending condition that requires revealing data matching a committed hash.
- Preimage
- The original secret data whose hash equals a previously committed value.
- Witness
- Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
- CLTV
- CheckLockTimeVerify: a Bitcoin Script operation that enforces an absolute time or block-height condition.
- CSV
- CheckSequenceVerify: a Bitcoin Script operation that enforces a relative delay after an earlier output confirms.
- Hash160
- SHA-256 followed by RIPEMD-160, producing the 20-byte hash used by several Bitcoin spending conditions.
- CHECKSIG
- The Bitcoin Script operation that checks whether a signature is valid for the required public key and transaction message.
Multiple keys, timelocks, and hashlocks can form recovery, escrow, and channel policies.
Loading lesson visuals...
Learn the idea
A spending policy can combine signatures, timelocks, and hashlocks. A hashlock requires a preimage whose hash matches a commitment. An absolute timelock targets a height or time, while a relative timelock requires an output to age. Multisig requires a threshold of listed keys. Script branches let different combinations satisfy the same output.
Write each branch as a condition
For example, the fast branch might require Alice and Bob, while recovery requires Carol after 144 blocks.
Inspect every idea above to open it.
The selected branch may also require a signature, timelock state, or other condition. The complete script determines authority.
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.