Reviewed Aug 2026
DE
DA-03 · LESSON 08

Fees, signature checks, and control blocks

KEY DEFINITIONS

Terms used in this lesson

Control block
Proof data showing that a revealed script was committed inside a Taproot output.
Witness
Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
Taptree
The Merkle tree of alternative scripts committed inside a Taproot output.
Preimage
The original secret data whose hash equals a previously committed value.
Proof-of-work target
The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
Taproot
A Bitcoin output and spending design that can combine a public-key path with privately committed alternative scripts.
Outpoint
A transaction ID plus output number that identifies one exact prior output.
Guardian
A Ducat policy-checking signer that can authorize or reject defined protocol transactions.

Ducat estimates transaction weight from inputs, outputs, witnesses, signatures, price commitments, and taptree depth.

65 min Difficulty 4/5 Not started

Loading lesson visuals...

01

Learn the idea

Transaction fees equal input value minus output value. Bitcoin weight counts each non-witness byte as four weight units and each witness byte as one. Virtual size is weight divided by four and rounded up; one virtual byte is the resulting fee-pricing unit. A target fee in satoshis is virtual size multiplied by satoshis per virtual byte and rounded up again to a whole satoshi. Signature checks and Taproot control blocks add witness weight, so Ducat builders estimate the complete action rather than counting only ordinary inputs and outputs.

GUIDED EXPLANATION1/4 ideas inspected
1

Count base transaction weight

Version, locktime, input outpoints, sequences, and outputs contribute non-witness bytes at full weight.

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

Inspect every idea above to open it.

Important distinctionTaproot makes every Ducat action the same size because unused script leaves stay hidden.

Only unused leaves stay hidden. The chosen path's signatures, script, control block, and other witness items still affect weight.

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.