Fees, signature checks, and control blocks
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.
Loading lesson visuals...
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.
Count base transaction weight
Version, locktime, input outpoints, sequences, and outputs contribute non-witness bytes at full weight.
Inspect every idea above to open it.
Only unused leaves stay hidden. The chosen path's signatures, script, control block, and other witness items still affect weight.
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.