Validator reconstruction
Terms used in this lesson
- Validator
- Software or a participant that independently checks state transitions under a system's rules. The exact role depends on the protocol being discussed.
- UTXO
- Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
- UNIT
- Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- API
- Application programming interface: a defined way for one program to request data or actions from another.
- Guardian
- A Ducat policy-checking signer that can authorize or reject defined protocol transactions.
- Runestone
- Transaction data interpreted by the Runes protocol to describe token creation or allocation.
- Outpoint
- A transaction ID plus output number that identifies one exact prior output.
Validators scan Bitcoin blocks, maintain UTXOs and protocol objects, validate UNIT transfers against vault differentials, and serve query APIs.
Loading lesson visuals...
Learn the idea
A Ducat validator is an indexer and rule engine. An indexer reads Bitcoin blocks in selected-chain order and derives application state from their transactions. Derived state means the current vaults, accounts, reserves, and UNIT allocations calculated from Bitcoin history. A reorganization, or reorg, replaces previously selected blocks, so the validator must undo their derived effects before applying the replacement branch. It does not create Bitcoin consensus or hold the Guardian signing key.
Follow the active chain
Read blocks in order and identify protocol transactions, inputs, outputs, action tags, and runestones.
Inspect every idea above to open it.
Bitcoin outputs are authoritative for spends. The validator reconstructs additional Ducat meaning and can be independently compared or rebuilt.
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.