Reviewed Aug 2026
DE
DA-03 · LESSON 05

Single-transaction actions

KEY DEFINITIONS

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.

35 min Difficulty 4/5 Not started

Loading lesson visuals...

01

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.

GUIDED EXPLANATION1/4 ideas inspected
1

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 each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionSingle-transaction actions all share the same inputs and signatures.

Single describes package shape only. Each action still has a distinct parser, role map, validation, and witness requirement.

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.