November 13, 2019

Blockchain Primer: Cardano’s UTXO Model – Simply Explained

blockchain primer cardanos utxo model simply explained 1

Introduction

In traditional banking systems, our personal bank accounts are kept up-to-date through a centralized system of accounts. This means that when you send or receive money for bills or your salary, the banking system keeps track of this through a centralized ledger of debits and credits. The bank records money that leaves one account, enters another and records the balance. This is an accounts-based model. Cardano – the first third-generation blockchain to evolve out of a scientific & peer-reviewed philosophy – uses a different type of system for keeping track of peoples’ funds and transactions known as the Unspent Transaction Output (UTXO) model.

This model was first applied to a blockchain with the dawn of first-generation Bitcoin and has been adopted by many blockchains since its inception. Cardano uses an upgraded version of this model to keep track of who owns what and transactions that are made from peer-to-peer in a decentralized ecosystem. In this post, we’ll look at what the UTXO model is, and its role in the Cardano ecosystem.

Cardano’s UTXO Model: A Big Apple Tree

To understand the UTXO model, it’s helpful to think of a very big apple tree with many branches. There are people all over the tree sitting on different branches, with different amounts of apples on each branch. On this apple tree, there is a branch with ten apples hanging from it. You are sitting on this branch of the tree, because you own these ten apples. Imagine now that you want to give four apples to a friend. To give these four apples, two new branches start to grow at the very end of the branch you were sitting on. One of these branches has six apples, and another branch has four apples. Your friend then sits on the new branch with four apples and you sit on the branch with six apples. The two new branches have a total of ten apples on them collectively, which is the same as the original branch you sat on. New branches start to grow from your branches in the same way whenever a transaction is made.

From this example, we can see that the two branches were outputs of the original branch. One of these outputs, the branch with four apples on it, represents an output that now belongs to someone else. Because these have been sent to someone, they are spent outputs. The second branch with six apples is your branch of unspent outputs, which grew from the original branch. You are still able to give away these six apples, as these are the apples that are unspent outputs of your transaction to your friend. In this way, there is a clear chain of ownership that builds like a tree over time. The transactions that are unspent can be used for further transactions, and so on.

In this way, Cardano prevents double spending attacks. It is impossible to give away “apples” (ADA) that you do not own, as you cannot transact with “apples” on a branch you no longer sit on. Each branch is linked to a unique public address which everyone has visibility of through EMURGO’s Seiza Cardano Blockchain Explorer. This public address is linked with your private keys, which allow you to send funds to others.

How The UTXO Works In Daily Life

With the upcoming launch of Shelley, Cardano ADA holders operating stake pools will receive ADA as rewards for their work in validating blocks on the network. From the moment that these stake pool operators receive their ADA, the open & transparent blockchain will record and store all previous transactions based on the UTXO model to everyone else in the Cardano network. This means that UTXO-based accounting system keeps track of payments and who owns what.

Conclusion

The UTXO model is a core pillar of the open accounting system that Cardano is based on. While understanding the model is non-intuitive at first, it is helpful to think of a metaphor to get a better grasp of how UTXO works. In this case, the thought of a tree with many branches growing from the previous branch is a helpful thought. Through this UTXO method, it is very easy to keep track of ownership of funds. While Bitcoin invented UTXO’s use in a blockchain setting, Cardano is building and evolving on this model by incorporating smart contracts into UTXO, while also offering scalability, sustainability, and interoperability with other legacy systems and blockchains. This creates powerful, decentralized ways to securely model financial contracts and send money in an open and distributed blockchain like Cardano.

about emurgo
|| Click here to subscribe to the EMURGO Newsletter ||

‌EMURGO drives the adoption of Cardano and adds value to ADA holders by building, investing in, and advising projects or organizations that adopt Cardano’s decentralized blockchain ecosystem. EMURGO leverages its expertise in blockchain R&D as well as its global network of related blockchain and industry partners to support ventures globally.

EMURGO is the official commercial and venture arm of the Cardano project, headquartered in Singapore, with a presence in Japan, the USA, India, and Indonesia. EMURGO works closely with IOHK and The Cardano Foundation to grow Cardano’s ecosystem globally, and promote its adoption. Learn more about the project at https://emurgo.id

Follow EMURGO on Social Media

About Yoroi Wallet & Seiza Explorer

Related Articles

wpChatIcon