What is the UTXO model?How does the UTXO model work?UTXO advantagesUTXO disadvantagesWhat is the account-based model?How does the account model work?Account model advantagesAccount model disadvantagesHybrid models—The future of blockchain accounting?Why merge blockchain accounting standards?Conclusion
Thursday, 25 June, 2020
A Beginner’s Guide to Blockchain Accounting Standards
The UTXO and account-based models are the most commonly used accounting standards in blockchain networks. For instance, Bitcoin uses the UTXO based model as its accounting standard, while Ethereum uses the account-based model, also called as account model or balance model. In this edition of the Bridge, we introduce readers to these models and explain their key advantages and disadvantages to better reflect their applicability within different networks. Further, we look into an upcoming standard, called EUTXO, which is a hybrid standard that aims to bring together the advantages of the UTXO and account models.
What is the UTXO model?
UTXO stands for ‘unspent transaction output’. Similar to how a coin or note cannot be divided into a smaller denomination, an UTXO cannot be further divided. In other words, it is an indivisible chunk of a native token controlled by the private keys of owners. Whenever a user receives native tokens, such as bitcoin (BTC), the transaction is recorded as an UTXO. The ownership is recorded on the blockchain and the network tracks all available UTXOs.The number of BTC owned by a user can be composed of several UTXOs. There are several blockchain networks that use the UTXO model, such as Bitcoin Cash, Litecoin, Bitcoin SV, NEO, etc.
Under the UTXO model, a new transaction uses outputs from prior transactions and new transactions create new outputs (UTXOs) that can be used in the future. A helpful way to understand this concept is by using a cash purchase analogy:
The ‘balance’ in your bitcoin wallet works similarly. In fact, it represents the net of all inputs and outputs of your BTC UTXOs combined, showing how much BTC you have available to spend or, in other words, the amount that is ‘unspent’.
How does the UTXO model work?
To better understand how the UTXO standard works in the blockchain context, we created an example using BTC in Figures 1 and 2. Imagine Bob has a wallet containing 4.4 BTC in total, which is made up of three different UTXOs: 3 BTC, 0.8 BTC, and 0.6 BTC. These three UTXOs represent bitcoin funds he has received from three previous transactions and can be seen as three different value bank notes in the wallet/purse he uses to store fiat cash.
Figure 1: Pre-Transaction
Source: SEBA Research
Figure 2: Transaction Process
Source: SEBA Research
A primary advantage of the UTXO model is scalability. Given the option to process multiple UTXOs simultaneously, transactions can be processed parallelly, which allows for a reduction of the computational load. Privacy is another key benefit, as it is far more difficult to track transactions if new addresses are used each time2. Security is also a plus, since the inputs and outputs for transactions are linked, with rare exceptions. Therefore, it is easy to authenticate all transaction sequences, limiting the risk of double-spending.
UTXO implementation is complex because sending a transaction requires multiple considerations, such as the number of inputs to be combined or which inputs should be combined if there are multiple possible combinations.
UTXOs are stateless, meaning no two transactions can affect the same UTXO. Transactions do not refer to any input outside of the consumed UTXOs. As UTXOs can be executed in parallel, they are not well suited for applications, such as smart contracts, that are stateful.
What is the account-based model?
The account-based model operates using accounts. Ethereum, Ethereum Classic, Ripple, and several other blockchain networks use this model. Under the account-based model, the addresses are viewed similar to accounts that have an aggregate balance, not a sum of UTXOs. Unlike the UTXO model, transactions are simple transfers of funds between two accounts – no change is involved.
In other words, the account model handles transactions differently from the UTXO model, working similarly to a debit card transaction.
How does the account model work?
The account model maps all accounts into balances, with transactions moving from one state to the next. Simply, this means that sending funds reduces the balance of one account and increases the balance of the other. Using the example above but with ETH instead of BTC (see Figure 3), we get:
Figure 3: Transaction Process in Ethereum
Source: SEBA Research
Account model advantages
The main advantage of the account model is simplicity. With smart contracts being fundamental to the Ethereum model, the account approach helps make smart contracts more expressive and powerful. Since the UTXO model does not have a ‘state’ approach, it results in unnecessary complexity. However, for accounts following the state approach, developers have more flexibility to build applications. Additionally, since there is only the requirement to ensure that the sending account has sufficient funds to complete a transaction, this model is much simpler and there are large efficiency gains as a result.
Account model disadvantages
The reliance on ‘events’ rather than specified input and output states poses problems for the account model because each transaction needs to be checked for accuracy by the Ethereum Virtual Machine (an isolated environment for running smart contracts in Ethereum). This can make the account model unnecessarily complex, sacrificing certainty in the process, since the validity of transactions is unconfirmed until they are finally executed. Further, the account model encourages address re-use, which may be detrimental to privacy.
Hybrid models—The future of blockchain accounting?
Both benchmark blockchain accounting models were chosen by their respective networks for the following reasons. On one hand, Ethereum’s focus was on creating powerful smart contracts, which is what the account model provides. Bitcoin, on the other hand, wanted a model that would best replicate cash, allow privacy, and remain straightforward even in a complex distributed computing environment, which is why they opted for the UTXO approach.
Picking one model over the other invites trade-offs mentioned previously. That is why the most recent blockchain network developments indicate a trend towards hybrid models. Those networks that already adopted a hybrid model include Cardano, Komodo, Tron, and Qtum, among others.
Why merge blockchain accounting standards?
Blockchain networks moving towards hybrid models attempt to retain the UTXO model’s semantic simplicity without losing the ability to include a strong smart contract base. Hybrid models intend to overcome the shortcoming of the UTXO architecture by making it easier for developers to use UTXOs as the root level to create blockchain-based contracts. For instance, Cardano’s extended UTXO (EUTXO) model aims to achieve this by allowing the execution process to be divided into several transactions. As previously stated, UTXOs are stateless and thus not desirable for smart contracts. Therefore, the EUTXO model intends to retain parallel processing without losing smart contract ability. Also different from the traditional UTXO model, data fields are added to the outputs of each transaction, where information can be linked to a smart contract. With specific transactions comprising each state change, this shows striking similarities Ethereum’s state machine. The details of how it is done can be found hereherelink1.
Bitcoin and Ethereum chose different accounting models because their purposes are different. Newer blockchain accounting standards increasingly look towards hybrid models to benefit from the advantages of both UTXO and account-based model approach. However, whether this approach will work can only be answered once these models are sustainable ‘in the wild‘ for a non-trivial amount of time.
Subscribe to the research newsletter and get weekly updates about the latest articles of SEBAresearch
Subscribe to newsletter↓
This document has been prepared by SEBA Bank AG (“SEBA”) in Switzerland. SEBA is a Swiss bank and securities dealer with its head office and legal domicile in Switzerland. It is authorized and regulated by the Swiss Financial Market Supervisory Authority (FINMA). This document is published solely for information purposes; it is not an advertisement nor is it a solicitation or an offer to buy or sell any financial investment or to participate in any particular investment strategy. This document is for distribution only under such circumstances as may be permitted by applicable law. It is not directed to, or intended for distribution to or use by, any person or entity who is a citizen or resident of or located in any locality, state, country or other jurisdiction where such distribution, publication, availability or use would be contrary to law or regulation or would subject SEBA to any registration or licensing requirement within such jurisdiction.
No representation or warranty, either express or implied, is provided in relation to the accuracy, completeness or reliability of the information contained in this document, except with respect to information concerning SEBA. The information is not intended to be a complete statement or summary of the financial investments, markets or developments referred to in the document. SEBA does not undertake to update or keep current the information. Any statements contained in this document attributed to a third party represent SEBA's interpretation of the data, information and/or opinions provided by that third party either publicly or through a subscription service, and such use and interpretation have not been reviewed by the third party.
Any prices stated in this document are for information purposes only and do not represent valuations for individual investments. There is no representation that any transaction can or could have been effected at those prices, and any prices do not necessarily reflect SEBA’s internal books and records or theoretical model-based valuations and may be based on certain assumptions. Different assumptions by SEBA or any other source may yield substantially different results.
Nothing in this document constitutes a representation that any investment strategy or investment is suitable or appropriate to an investor’s individual circumstances or otherwise constitutes a personal recommendation. Investments involve risks, and investors should exercise prudence and their own judgment in making their investment decisions. Financial investments described in the document may not be eligible for sale in all jurisdictions or to certain categories of investors. Certain services and products are subject to legal restrictions and cannot be offered on an unrestricted basis to certain investors. Recipients are therefore asked to consult the restrictions relating to investments, products or services for further information. Furthermore, recipients may consult their legal/tax advisors should they require any clarifications. SEBA and any of its directors or employees may be entitled at any time to hold long or short positions in investments, carry out transactions involving relevant investments in the capacity of principal or agent, or provide any other services or have officers, who serve as directors, either to/for the issuer, the investment itself or to/for any company commercially or financially affiliated to such investment.
At any time, investment decisions (including whether to buy, sell or hold investments) made by SEBA and its employees may differ from or be contrary to the opinions expressed in SEBA research publications.
Some investments may not be readily realizable since the market is illiquid and therefore valuing the investment and identifying the risk to which you are exposed may be difficult to quantify. Investing in digital assets including cryptocurrencies as well as in futures and options is not suitable for every investor as there is a substantial risk of loss, and losses in excess of an initial investment may under certain circumstances occur. The value of any investment or income may go down as well as up, and investors may not get back the full amount invested. Past performance of an investment is no guarantee for its future performance. Additional information will be made available upon request. Some investments may be subject to sudden and large falls in value and on realization you may receive back less than you invested or may be required to pay more. Changes in foreign exchange rates may have an adverse effect on the price, value or income of an investment. Tax treatment depends on the individual circumstances and may be subject to change in the future.
SEBA does not provide legal or tax advice and makes no representations as to the tax treatment of assets or the investment returns thereon both in general or with reference to specific investor’s circumstances and needs. We are of necessity unable to take into account the particular investment objectives, financial situation and needs of individual investors and we would recommend that you take financial and/or tax advice as to the implications (including tax) prior to investing. Neither SEBA nor any of its directors, employees or agents accepts any liability for any loss (including investment loss) or damage arising out of the use of all or any of the Information provided in the document.
This document may not be reproduced or copies circulated without prior authority of SEBA. Unless otherwise agreed in writing SEBA expressly prohibits the distribution and transfer of this document to third parties for any reason. SEBA accepts no liability whatsoever for any claims or lawsuits from any third parties arising from the use or distribution of this document.
Research will initiate, update and cease coverage solely at the discretion of SEBA. The information contained in this document is based on numerous assumptions. Different assumptions could result in materially different results. SEBA may use research input provided by analysts employed by its affiliate B&B Analytics Private Limited, Mumbai. The analyst(s) responsible for the preparation of this document may interact with trading desk personnel, sales personnel and other parties for the purpose of gathering, applying and interpreting market information The compensation of the analyst who prepared this document is determined exclusively by SEBA.
Austria: SEBA is not licensed to conduct banking and financial activities in Austria nor is SEBA supervised by the Austrian Financial Market Authority (Finanzmarktaufsicht), to which this document has not been submitted for approval. France: SEBA is not licensed to conduct banking and financial activities in France nor is SEBA supervised by French banking and financial authorities. Italy: SEBA is not licensed to conduct banking and financial activities in Italy nor is SEBA supervised by the Bank of Italy (Banca d’Italia) and the Italian Financial Markets Supervisory Authority (CONSOB - Commissione Nazionale per le Società e la Borsa), to which this document has not been submitted for approval. Germany: SEBA is not licensed to conduct banking and financial activities in Germany nor is SEBA supervised by the German Federal Financial Services Supervisory Authority (Bundesanstalt für Finanzdienstleistungsaufsicht), to which this document has not been submitted for approval. Hong-Kong: SEBA is not licensed to conduct banking and financial activities in Hong-Kong nor is SEBA supervised by banking and financial authorities in Hong-Kong, to which this document has not been submitted for approval. This document is not directed to, or intended for distribution to or use by, any person or entity who is a citizen or resident of or located in Hong-Kong where such distribution, publication, availability or use would be contrary to law or regulation or would subject SEBA to any registration or licensing requirement within such jurisdiction. This document is under no circumstances directed to, or intended for distribution, publication to or use by, persons who are not “professional investors” within the meaning of the Securities and Futures Ordinance (Chapter 571 of the Laws of Hong Kong) and any rules made thereunder (the “SFO”). Netherlands: This publication has been produced by SEBA, which is not authorised to provide regulated services in the Netherlands. Portugal: SEBA is not licensed to conduct banking and financial activities in Portugal nor is SEBA supervised by the Portuguese regulators Bank of Portugal “Banco de Portugal” and Portuguese Securities Exchange Commission “Comissao do Mercado de Valores Mobiliarios”. Singapore: SEBA is not licensed to conduct banking and financial activities in SIngapore nor is SEBA supervised by banking and financial authorities in Singapore, to which this document has not been submitted for approval. This document was provided to you as a result of a request received by SEBA from you and/or persons entitled to make the request on your behalf. Should you have received the document erroneously, SEBA asks that you kindly destroy/delete it and inform SEBA immediately. This document is not directed to, or intended for distribution to or use by, any person or entity who is a citizen or resident of or located in Singapore where such distribution, publication, availability or use would be contrary to law or regulation or would subject SEBA to any registration or licensing requirement within such jurisdiction. This document is under no circumstances directed to, or intended for distribution, publication to or use by, persons who are not accredited investors, expert investors or institutional investors as defined in section 4A of the Securities and Futures Act (Cap. 289 of Singapore) (“SFA”). UK: This document has been prepared by SEBA Bank AG (“SEBA”) in Switzerland. SEBA is a Swiss bank and securities dealer with its head office and legal domicile in Switzerland. It is authorized and regulated by the Swiss Financial Market Supervisory Authority (FINMA). This document is for your information only and is not intended as an offer, or a solicitation of an offer, to buy or sell any investment or other specific product.
SEBA is not an authorised person for purposes of the Financial Services and Markets Act (FSMA), and accordingly, any information if deemed a financial promotion is provided only to persons in the UK reasonably believed to be of a kind to whom promotions may be communicated by an unauthorised person pursuant to an exemption under the FSMA (Financial Promotion) Order 2005 (the “FPO”). Such persons include: (a) persons having professional experience in matters relating to investments (“Investment Professionals”) and (b) high net worth bodies corporate, partnerships, unincorporated associations, trusts, etc. falling within Article 49 of the FPO (“High Net Worth Businesses”). High Net Worth Businesses include: (i) a corporation which has called-up share capital or net assets of at least £5 million or is a member of a group in which includes a company with called-up share capital or net assets of at least £5 million (but where the corporation has more than 20 shareholders or it is a subsidiary of a company with more than 20 shareholders, the £5 million share capital / net assets requirement is reduced to £500,000); (ii) a partnership or unincorporated association with net assets of at least £5 million and (iii) a trustee of a trust which has had gross assets (i.e. total assets held before deduction of any liabilities) of at least £10 million at any time within the year preceding the promotion. Any financial promotion information is available only to such persons, and persons of any other description in the UK may not rely on the information in it. Most of the protections provided by the UK regulatory system, and compensation under the UK Financial Services Compensation Scheme, will not be available.
© SEBA / Grafenauweg 6, 6300 Zug, Switzerland