Single-transaction actions
Terms used in this lesson
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- Hash160
- SHA-256 followed by RIPEMD-160, producing the 20-byte hash used by several Bitcoin spending conditions.
- Preimage
- The original secret data whose hash equals a previously committed value.
- UNIT
- Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
- Collateral
- An asset pledged against a debt; it can be used to cover the debt if agreed conditions are breached.
- Proof-of-work target
- The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
- BTC
- The common market ticker for bitcoin.
- Witness
- Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
Deposit, withdraw, repo, and trim update vault state without the separate issuance or burn pattern.
Loading lesson visuals...
Learn the idea
A single-transaction action changes vault state without a separate UNIT issue or burn parent. Deposit adds owner collateral. Withdraw removes permitted owner collateral. Repo is a full liquidation path that closes an unsafe vault under its liquidation rules. Trim is a partial liquidation path that reduces exposure while leaving a successor vault. A cleared target marker is the action-specific minimal output used by the captured parser to record that a liquidated target no longer carries its former live vault state. Single describes package shape, not shared economic meaning.
Choose the action layout
Deposit and withdraw modify one owner's collateral; repo and trim consume liquidator and unsafe-vault state under liquidation rules.
Inspect every idea above to open it.
Single describes package shape only. Each action still has a distinct parser, role map, validation, and witness requirement.
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.