Comparing Bitcoin’s UTXO Model and Ethereum Account Balance Model

Bitcoin is the most popular and valuable cryptocurrency globally, while Ethereum has the most applications based on the d-apps and tokens built under its technology.

Understanding how either of these currencies works is fundamental to comprehending the broad cryptocurrency concept.

At the core of any cryptocurrency is the model of transactions, and these two behemoths built generally for different purposes have unique transaction models.

Interestingly, each model is related to existing financial models, making it easier for anybody to understand the complicated computing behind the scenes empowering these blockchain technologies.

Bitcoin’s UTXO Model

UTXO – Unspent Transaction Output – is a model where ‘unspent’ bitcoin amounts sent to a user (transacted) are kept in a fully synchronized node.

Each transaction spends output from a prior transaction on the bitcoin blockchain and generates a new output that can be spent in future transactions. If the output of a particular transaction is not spent, it is considered an unspent token.

Essentially, an owner does not directly own the tokens but owns the output of a specific number of tokens that can then be signed over as an input to a new owner who then controls the new outputs.

On the blockchain, they appear like a collection of bitcoin amounts on different addresses, and any owner must have the requisite address, digital signature, and digital key necessary to prove ownership over the new output.

Bitcoin UTXO Model
Bitcoin UTXO Model, source: bitcoin.org

From this explanation, the simple job of a Bitcoin wallet is to deduce which addresses a user has the keys to and thus give them permissions to conduct transactions.

Three primary rules apply in the UTXO model.

  • Every transaction must prove that the sum of its inputs is greater than the sum of its outputs.
  • Every referenced input must be valid and unspent.
  • The transaction must have a signature matching the owner of the input for every input.

UTXO In layman’s language

The UTXO system is like a digital recreation of the cash economy, which involves actual notes or coins and wallets. Let’s put this into perspective using two subjects, Fatuma and Odhiambo.

Bitcoin TransactionCash Transaction
Fatuma has 10 BTC; the system recognizes that there is 10 BTC signed to her, and they have not been spent. Meanwhile, Odhiambo has 5 BTC, recognized and unspent.Fatuma has Ksh 1000 note in her wallet. Odhiambo has Ksh 500 note in his wallet.
Fatuma sends 2 BTC to Odhiambo: Fatuma’s wallet opens a UTXO using the entire 10 BTC as the input to the transaction. This transaction sends 2 BTC to Odhiambo and returns 8 BTC to Fatuma in the form of a new UTXO to a newly-created address.Fatuma gives Odhiambo the Ksh 1000 note. Odhiambo takes Ksh 200 and returns Ksh 800 to Fatuma.
Odhiambo’s wallet now keeps track of 2 UTXOs; the original 5 BTC and the new 2 BTC sent by Fatuma. His balance now reads 7 BTC.Odhiambo’s wallet now has two notes; the original Ksh 500 note and the newly acquired Ksh 200 note, which brings the total balance to Ksh 700
Bitcoin UTXO model similar to cash transactions

That’s just a simple illustration of how the UTXO model functions. Take note that you don’t own the coins in the bitcoin blockchain; instead, you own transaction details that assign coins to you.

Ethereum’s Account Balance Model

Ethereum is different from bitcoin fundamentally because it is primarily an open-source blockchain platform for decentralized applications while the latter is majorly a cryptocurrency. Ethereum was built to perform more functions above enabling the transfer of value through the internet.

Consequently, certain concepts applied by developers of its predecessor (bitcoin) were discarded and replaced by more applicable ones. For a start, the account balance model of transactions repaced the UTXO model.

This simpler and space-saving model is critical in enabling the Ethereum ecosystem, which uses smart contracts to perform complex transactions. Other advantages of the model include familiarity and fungibility (equal value between assets).

Ethereum’s Account Balance model stores information about the entire balance associated with a user’s account and keeps track of the balance of each as a global state. Every account in Ethereum has its balance, storage, and code-space for calling other accounts or addresses.

For a transaction to occur, a user has to prove ownership over the account, and the account’s balance has to be enough to support the transaction and transaction fee. Once these conditions are met, the sending account is debited, and the receiving account is credited.

Additionally, suppose the receiving account has code. In that case, it runs and makes changes to the internal storage or creates additional messages to other accounts, resulting in further debit and credit transactions.

Account balance model in layman’s language

This model is based on the banking system that utilizes accounts that contain money in the form of numbers, and transactions are conducted based on proof of ownership of accounts (by entering bank pins or passwords) and whether the account balance is enough to perform the transactions.

Again let’s use our two subjects once again

Ethereum TransactionBank Transaction
Odhiambo has 100 ETH on his Ethereum wallet, while Fatuma has 20 ETH on hers. The system recognizes that both Odhiambo and Fatuma own their respective accounts.Odhiambo has Ksh 50,000 in his bank account, while Fatuma has Ksh 20,000 in hers.
Odhiambo sends Fatuma 30 ETH; The system first confirms that Odhiambo owns the account used to request the transfer, then checks whether it contains more Ethers than 30 ETH plus a transaction fee. If both conditions are true, it debits 30 ETH plus (transaction fee) from Odhiambo’s account and credits Fatuma’s account with 30 ETH.Odhiambo requests the bank to send Ksh 10,000. The bank first asks Odhiambo to input his bank pin to initiate the transaction. If the pin is correct, the bank checks if the account has enough money to enable the transaction. If it does, it debits the account with Ksh 10,000 and a small transaction fee and credits Fatuma’s account with Ksh 10,000
Odhiambo’s account now reads a balance between 69 ETH and 70 ETH (due to the transaction cost), while Fatuma’s account reads 50 ETH.Odhiambo’s account now reads a little less than Ksh 40,000 while Fatuma’s account reads Ksh 30,000
Ethereum account balance model similar to the banking system

As illustrated, Ethereum’s account balance is just a reflection of the banking system. However, the additional functionalities enabled by the Ethereum blockchain, such as smart contracts, allow functionalities beyond just debiting and crediting accounts.

Despite using different concepts, both models achieve the same goal of tracking account balances in a consensus system.

Advantages of UTXO

  • It is possible to process multiple transactions outputs at the same time hence enabling parallel transactions an provides a scalable infrastructure
  • High level of privacy since users acquire new addresses for each transaction

Advantages of Account Balance Model

  • Each transaction needs to make only one reference and one signature to produce on output, less space is consumed
  • Ease and simplicity in coding
  • Since there exists no blockchain-level concept of the source of a specific set of coins, blacklisting coins used for illicit purposes is impractical. Hence each coin is as valuable as the next; fungibility.

On the other hand, each model contains its shortcomings.

The UTXO model has certain restrictions that make it hard to build applications on the blockchain and incompatibility with smart contracts.

Meanwhile, the account balance model faces scalability issues and is exposed to double spending unless an incremental nonce counteracts such attacks.

Leave a Comment

Koinsoko is a media platform with the mandate of presenting cryptocurrencies and blockchain technologies to the mainstream world to prepare them for the future of money and the internet.

Resources

Blog

Portfolio

Hire Me

FAQ

Contact

Koinsoko

Kangundo Road, New Serena Estate, 00100, Nairobi, Kenya