Vault state
Terms used in this lesson
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- Collateral
- An asset pledged against a debt; it can be used to cover the debt if agreed conditions are breached.
- Oracle
- A system that reports outside information, such as a market price, for use by a protocol.
- UTXO
- Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
- Validator
- Software or a participant that independently checks state transitions under a system's rules. The exact role depends on the protocol being discussed.
- Proof-of-work target
- The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
- Guardian
- A Ducat policy-checking signer that can authorize or reject defined protocol transactions.
- BTC
- The common market ticker for bitcoin.
- UNIT
- Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
- Outpoint
- A transaction ID plus output number that identifies one exact prior output.
- Witness
- Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
A vault is represented by Bitcoin outputs plus protocol metadata, with each valid action consuming an earlier state and creating its successor.
Loading lesson visuals...
Learn the idea
A Ducat vault is not a mutable row in a central database. Its current state is represented by Bitcoin outputs plus protocol metadata. An oracle commitment fixes price-linked secret material used by a possible liquidation path. An active script path is one permitted spending condition in the current vault output. Updating the vault means spending the current vault UTXO and creating its successor.
Read the current state
The client and validator identify the live vault output and reconstruct its collateral, debt, owner, oracle commitments, and active script paths from the indexed chain state.
Inspect every idea above to open it.
The authoritative transition is a Bitcoin spend from the old output to a new one. Databases reconstruct and serve that history.
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.