Technical definition
The UTXO model represents blockchain state as a collection of UTXOs, each of which is a data structure containing an amount of cryptocurrency, a locking script (e.g., a public key hash), and a reference to the transaction that created it. Transactions consume one or more UTXOs as inputs and produce one or more new UTXOs as outputs, with the sum of input values equaling the sum of output values (minus any transaction fees). This model ensures deterministic transaction validation, parallel transaction processing, and simplified verification of double-spending without requiring global state tracking.
An analogy
Imagine a cash register where every dollar bill is a unique, numbered IOU from the bank. When you spend money, you hand over specific bills (UTXOs) and receive new bills in return. The register only tracks which bills are unspent, not the total balance of any individual.
Why it matters
The UTXO model enables efficient transaction validation, supports parallel processing of transactions, and provides a natural way to prevent double-spending without requiring a global ledger state. It is foundational to Bitcoin and many other cryptocurrencies.
Where it came from
The UTXO model was introduced by Bitcoin in 2009 as part of its core design. It was inspired by earlier cryptographic payment systems like Hashcash and was chosen for its simplicity and security properties.
Example in practice
In Bitcoin, when Alice sends 0.1 BTC to Bob, the transaction consumes one or more UTXOs controlled by Alice (e.g., a UTXO worth 0.15 BTC) and creates two new UTXOs: one worth 0.1 BTC sent to Bob and another worth 0.049 BTC returned to Alice as change (with 0.001 BTC as a transaction fee).
Common misconceptions
- UTXOs are the same as account balances → Correction: UTXOs are discrete units that must be fully spent or combined, unlike account balances which are fungible and tracked as a single value.
- The UTXO model is only used in Bitcoin → Correction: While Bitcoin popularized it, UTXO is also used in Litecoin, Bitcoin Cash, and Cardano, among others.
Risks & limitations
- Transaction complexity: Large transactions may require combining many small UTXOs, increasing fees and processing time.
- Privacy limitations: UTXO ownership can sometimes be linked through transaction graphs, reducing privacy compared to account models.
- Scalability challenges: UTXO-based systems may struggle with high throughput due to the need to validate all inputs and outputs for each transaction.