[quote=“filip, post:1, topic:8445, full:true”]
Homework on UTXO vs Account Model - Questions
1. The account model doesn’t require much space as the UTXO model, why is that a benefit?
These systems indeed have various trade-offs.
Ethereum maintains the account balance as part of the global state,
A Bitcoin user’s UTXO/balance is the total value for which the user has a private key capable of producing a valid *signature - *which uses over 50% of the space in each block.
Two types of record-keeping models are popular in today’s blockchain networks.
- UTXO (Unspent Transaction Output) Model employed by Bitcoin
- Account/Balance Model used by Ethereum
UTXO (Unspent Transaction Output) Model:
In Bitcoin, each transaction spends output from prior transactions and generates new outputs that can be spent by new future transactions; hence this Bitcoin model is named “UTXO”. All of the UTXO are kept in fully-synchronised network of nodes.
A Bitcoin wallet keeps track of a list of UTXO associated with all addresses owned by the owner, and the balance of the wallet is calculated as the sum of those unspent transactions as your total balance.
Account/Balance Model:
On the other hand, the Account/Balance Model keeps track of the balance of each account as a total. The balance of an account is checked to make sure there is sufficient Ether to send a transaction amount.
The record-keeping for Ethereum is just like a bank. The bank tracks how much money a debit card has, and when we need to spend money, the bank checks its record to make sure we have enough balance before approving the transaction.
In Ethereum, every account has a public viewable nonce and every time a transaction is made, the nonce is increased by one. This can prevent the same transaction being submitted more than once
Both models achieve the same goal of keeping track of the distributed ledger (UTXO and Account Balances) by consensus mechanisms.
2. How is the account model not as great as the UTXO model for privacy?
Advantages of the UTXO Model versus the Disadvantages of the Ethereum Account Balance model:
Scalability : Since it is possible to process multiple UTXOs at the same time, it enables parallel transactions and encourages scalability innovation.
Privacy : Even Bitcoin is not a completely anonymous system, but UTXO provides a higher level of privacy, as long as the users use new addresses for each transaction. If there is a need for enhanced privacy, more complex schemes, can be considered, i.e. ring signatures
The Advantages of the Account/Balance Model versus the Disadvantage of the Bitcoin UTXO model:
Simplicity: Ethereum opted for a more intuitive model for the benefit of developers of complex smart contracts, especially those that require state information or involve multiple parties.
Efficiency: The Account/Balance Model is more efficient, as each transaction only needs to validate that the sending account has enough balance to pay for the transaction.
Large space savings: because every transaction need only make one reference and one signature and produces one output
Greater fungibility : the ability of commodity/goods or assets to be interchanged with other individual goods or assets of the same type. Fungible assets simplify the exchange and trade processes, as fungibility implies equal value between the assets.
As mentioned above, like most things in computer architecture, both models have trade-offs