The UTXO Model and Parallelism
The UTXO Model and Parallelism
Bitcoin does not have "accounts" or "balances." Instead, the entire network is a collection of individual chunks of bitcoin called Unspent Transaction Outputs (UTXOs). To understand Bitcoin's scalability and security, you must understand why this model was chosen over the "Account Model" used by traditional banks and Ethereum.
1. UTXOs vs. Accounts
-
Account Model: The state is a list of addresses and their current balances. To send money, the system subtracts from one account and adds to another.
-
UTXO Model: The state is a list of individual "coins." To send money, you must consume an existing coin in its entirety and create new ones.
2. The Power of Parallelism
Because UTXOs are independent of each other, Bitcoin nodes can verify multiple transactions at the same time (in parallel) if they spend different UTXOs.
-
In an account model, two transactions from the same account must be processed sequentially to prevent a double-spend.
-
In the UTXO model, thousands of transactions can be validated simultaneously as long as they don't reference the same "coin."
3. Statelessness and Privacy
The UTXO model allows for better privacy through "Change Addresses." Every time you spend, you create a new UTXO for your change, making it harder for observers to track your total wealth. It also makes the protocol "stateless" at the transaction level—a transaction contains everything needed to verify it, without needing to know the "history" of the account.
4. Atomic Swap Capabilities
The UTXO model is what enables complex "atomic" operations. Since a transaction is just a mapping of inputs to outputs, you can create a single transaction that swaps one set of UTXOs for another, ensuring that either the whole swap happens or nothing happens.
| Feature | UTXO Model | Account Model |
|---|---|---|
| Verification | Parallel / Fast | Sequential / Slower |
| Privacy | High (Change IDs) | Low (Static IDs) |
| Complexity | Higher for Wallets | Simple for Wallets |
| Statelessness | Yes | No |
In the next section, we will look at how nodes store these coins in the UTXO Set (Chainstate).
TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation: