What Are eUTXOs?

Translation temporarily unavailable. Showing original English.
Ergo Platform

2024年2月6日

eUTXOs, or extended Unspent Transaction Outputs, offer a distinct way of creating smart contracts and building dApps on Bitcoin-like blockchains. The eUTXO model is fundamentally different from Ethereum’s Account-based model as well as many other smart contract chains, and it has various advantages and trade-offs.

What Is A UTXO?

A UTXO is an Unspent Transaction Output, or a block of coins that are the result of a transaction and that have not subsequently been spent by the receiving address. UTXOs are an important concept for Bitcoin and similar blockchains, including Ergo.

In such systems, the balance of an address is not stored on the blockchain as a single value. Instead, it is the sum of a collection of individual, spendable “outputs” from transactions into the address, with each representing a certain amount of coins. These individual outputs are the UTXOs.

How Do UTXOs Work?

UTXOs are a means of tracking balances on the blockchain. When a user initiates a transaction, they are essentially spending one or more UTXOs that they control in their wallet. The outputs of a transaction create new UTXOs for the recipients, and potentially a “change” balance of UTXO coins for the sender if there is anything left over.

For example, Alice wants to send Bob 20 ERG. Her address contains UTXOs of 15, 10, 7, 6, and 3 ERG. She selects the UTXOs of 15 and 6 ERG (it is important to note that this step is typically handled automatically by the crypto wallet, but can be done manually) and sends 20 ERG to Bob. Bob now has a UTXO of 20 ERG in his wallet, and Alice receives “change” in the form of a 1 ERG UTXO.

Alice could have combined any number of UTXOs totaling at least 20 ERG to send to Bob, but the more UTXOs that are used, the larger the amount of data that needs to be stored on the blockchain, and the higher the transaction fee.

The UTXOs sent in transactions are considered unspent until they are used in a future transaction. At this point, they become part of a new UTXO.

UTXOs are therefore a little like envelopes of money. A user may hold many such envelopes and can combine them in transactions. Any new change (funds in excess of the transaction amount) resulting from transactions go in a new envelope and are retained by the sender.

Users also pay a small transaction fee to miners, which is simply the difference between the total input and the total outputs, including change. (On Ergo, this is typically 0.0011 ERG for a simple transaction.)

Every coin on the blockchain therefore belongs to a UTXO. Any coin can be traced back through previous UTXO coin blocks, right back to the transaction in which it first came into existence (i.e. when it was mined).

This is how Bitcoin-like blockchains track balances and ensure the reliability of transactions. Each transaction must reference valid and unspent UTXOs to be considered legitimate. The UTXO model provides transparency and allows anyone to independently verify the ownership and validity of bitcoins by inspecting the blockchain.

UTXOs therefore represent the building blocks of ownership and transactions in Bitcoin-like systems.

What Is The Account-Based Model?

The main alternative to the UTXO model is the Account-based approach. This is used by many blockchains, including Ethereum. An account-based model works in a completely different way from UTXO chains for tracking blockchain state.

##How Does The Account-Based Model Work?

In an account-based blockchain, transactions are managed through accounts associated with addresses. Each user has an account with a balance, much like a bank account has a balance, and transactions involve debiting and crediting these balances.

The state of the ledger is updated to reflect changes in account balances after transactions are executed. This model gives more granular control over user balances (since there is no need for change outputs) but has different properties, and various pros and cons.

UTXOs Vs Accounts: Advantages And Disadvantages

Like any system, there are advantages and disadvantages to using either the UTXO model or account-based approach.

Advantages of the UTXO model:

  • Simplified state tracking: Each UTXO represents a specific amount of cryptocurrency and its ownership, making tracking blockchain state straightforward.
  • Privacy: The UTXO model can enhance privacy if used properly, since individual transactions are not directly linked to user identities.
  • Parallel processing: UTXOs can be processed in parallel, enabling faster verification and validation of transactions, potentially contributing to scalability.
  • Clear ownership tracking: It is straightforward to trace the origin and current holder of a specific amount of coins.
  • Reduced blockchain bloat: Since spent UTXOs are removed from the UTXO set, using the UTXO model can help in reducing blockchain bloat, leading to more efficient storage.

Disadvantages of the UTXO model:

  • Scripting challenges: Due to the nature of the UTXO model, scripting operates differently than Account-based platforms, so it can be harder to build dApps if developers are used to a more conventional approach.
  • Less expressive smart contracts: The simplicity of the UTXO model may limit smart contract complexity, though there are ways to address this.
  • Scalability: As the number of UTXOs held on the blockchain grows, scalability challenges may arise.
  • Resource use: The UTXO model may lead to less efficient resource use, since spending coins involves consuming entire UTXOs, even if the transaction amount is low.

What Are eUTXOs?

As explored above, in the standard UTXO model (such as Bitcoin uses), every transaction requires existing UTXOs as an input and creates new UTXOs as outputs.

The extended UTXO or “eUTXO” model expands this concept by allowing UTXOs to contain additional information, such as complex scripting or smart contract logic.

The benefit of this approach is that users can still enjoy the benefits of the UTXO model, including security and simplicity, but the platform can also provide smart contract capabilities. Cardano is one well-known blockchain that leverages the eUTXO model to enable smart contracts on its network. Ergo is another.

How Do eUTXOs Work?

The eUTXO model extends the standard UTXO coin model in two ways:

  • Addresses can contain additional logic in scripts that provide further conditions and information. When the transaction is mined by a node, the node checks and executes the script if the conditions are met.
  • Outputs can include additional data, allowing for more powerful and flexible scripts.

All of this allows for complex logic that can contain many different conditions and information. This arbitrary logic is applied to a transaction by the validator and processed if the transaction is allowed to use a given input.

eUTXO Advantages And Disadvantages

As can be seen from the overview above, using UTXOs as the basis for smart contracts has various implications. Some of these offer significant advantages over Account-based smart contracts, but as in any system, there are trade-offs.

One feature of the eUTXO model is that a transaction is validated based only on the transaction itself and its inputs, without requiring anything else on the blockchain. An interesting and useful implication of this is that a transaction can be checked for validity off-chain before the transaction is sent for validation. After it is checked, the transaction will be guaranteed to succeed (so long as another transaction has not consumed its inputs in the meantime). eUTXOs are therefore more predictable and reliable than Account-based smart contract transactions, which can fail while they are being processed. On Ethereum, for example, it is possible for a transaction to consume significant gas and still fail, costing the user without any benefit.

Another implication of this reliability is that all of the fees required for the transaction can also be calculated before the transaction is submitted. Ethereum and other Account-based systems are indeterministic, meaning not only can the transaction fail, but that even if it does succeed, the exact cost is not known. With the eUTXO model, fees are predetermined and predictable.

Privacy tends to be better with the eUTXO model and transaction logic tends to be simpler because a UTXO can only be consumed once (and in its entirety). It also raises the possibility of parallel processing, since multiple UTXOs can be processed alongside each other (so long as they do not attempt to use the same input UTXO). The range of possible outcomes is far more limited than with an Account-based system, making execution more predictable and safe.

Against all this, the eUTXO model is quite different from an Account-based model, which is what most developers are familiar with (since Ethereum takes that approach). dApps that were created for Ethereum and similar blockchains cannot easily be adapted for use on eUTXO platforms.

Key Differences Between eUTXO Vs UTXO Vs Account-Based Model

UTXOs represent simple unspent outputs that can be used in new transactions. This is a simple, secure accounting model used by the first-generation blockchain: Bitcoin.

eUTXOs extend this approach and generalize it, so that validators can make a decision on whether a UTXO is spent based on a wide range of conditions – enabling far-reaching and expressive smart contracts to be built, while retaining the simplicity and security of the UTXO foundation.

Executing smart contracts on an Account-based system can be more complicated and potentially less secure, due to the way that data is stored and changes made.

In an eUTXO system, UTXO coins are either spent or not in their entirety. In an Account-based system, each account is mutable and smart contracts can modify their state during execution. This can lead to complex and occasionally hard-to-predict interactions between different contracts. Changes to the state of one smart contract can impact others, so there may be potential conflicts that need to be considered. This is not possible with the eUTXO model. Since UTXOs are independent, they are isolated and execution of smart contracts is more deterministic and safe - the changes to one part of the ledger do not directly affect others. Spending conditions are clear and easy to verify. Similarly, gas calculation is known and predictable.

Against all this, account-based blockchains generally offer greater flexibility for complex smart contracts and decentralized applications, since development is typically simpler and contracts can access and interact with other contracts easily – though this comes with greater risk and the possibility that vulnerabilities may inadvertently be introduced. An eUTXO-based approach is often preferable, all things being equal, for certain types of dApp.

Conclusion

eUTXOs offer a fundamentally different way of approaching smart contracts and decentralized applications than the prevailing Account-based model. While in some respects it may appear more limited, the eUTXO model is generally safer and more predictable, removing some of the most serious vulnerabilities associated with smart contracts.

Share post

Ergo基础设施DAO:去中心化Ergo生态系统的支柱

Ergo基础设施DAO:去中心化Ergo生态系统的支柱

Ergo的使命一直根植于去中心化,不仅在共识层面,而是在整个技术栈中。随着Ergo基础设施DAO (InfraDAO)的推出,这一愿景正在扩展到每天为生态系统提供动力的服务和基础设施。 InfraDAO现在在Paideia上正式上线,经过成功的治理投票。最初.

Ergo Platform

2025年8月13日

Mew Finance:一个为Ergo生态系统提供的有趣DeFi工具包

Mew Finance:一个为Ergo生态系统提供的有趣DeFi工具包

Mew Finance是一个基于Ergo区块链的去中心化应用套件。该项目于2024年10月启动,将DeFi、数字资产和跨链功能整合到一个统一的平台中。长期社区开发者HQΣr和Aco Šmrkas领导该项目。设计上偏向模块化、易用性和深度生态系统集成。 本文是.

Ergo Platform

2025年8月12日

Lithos:通过链上矿池实现去中心化挖矿

Lithos:通过链上矿池实现去中心化挖矿

Lithos是一个新协议,旨在通过将矿池转移到链上来彻底改革矿池的运作方式,使矿工完全控制,并消除对中心化矿池运营商的需求。与之前大多数去中心化挖矿的尝试不同,Lithos旨在高效、可扩展和安全。 什么是Lithos? Lithos是一个去中心化的矿池协议.

Ergo Platform

2025年7月24日

Sigma 6.0:更智能、更灵活的Ergo

Sigma 6.0:更智能、更灵活的Ergo

Sigma 6.

Ergo Platform

2025年7月23日

塑造Rosen的未来:关于五项关键财政提案的社区呼吁

塑造Rosen的未来:关于五项关键财政提案的社区呼吁

Rosen的联合创始人Armeanio已向Rosen财政提交了五项新提案。这些提案概述了Rosen Bridge的增长、实用性和可扩展性的战略愿景,这是Ergo互操作性基础设施的核心组成部分。 这是Ergo社区审查和讨论这一重要跨链服务未来方向的关键时刻。以.

Ergo Platform

2025年7月9日

Ergo的扩展UTXO与人工经济智能的崛起

Ergo的扩展UTXO与人工经济智能的崛起

自主经济代理的实用愿景 Ergo区块链上的自主经济代理在真实的数字经济中执行有用的工作。它们通过创建内容和提供数据分析、模式识别等服务来产生收入。它们利用收入支付运营费用,如托管费和服务器成本,并使用现代工具,如SSH和加密友好的托管服务提供商。当有额外资金.

Ergo Platform

2025年5月12日

ErgoHACK X:在Ergo区块链上的人工智能

ErgoHACK X:在Ergo区块链上的人工智能

庆祝去中心化创新的十年 加入第十届ErgoHACK,站在Ergo区块链AI革命的最前沿!释放你的创造力,与其他创新者合作,共同构建去中心化AI的未来。 关于ErgoHack ErgoHACK,旗舰社区黑客马拉松,庆祝其十周年!这一里程碑事件是Ergo生态系统.

Ergo Platform

2025年4月10日

ERG正式上线Kucoin(库币)交易所

ERG正式上线Kucoin(库币)交易所

据Kucoin官方通告,Ergo平台原生代币ERG于8月3日正式上线Kucoin(库币)交易所。目前支持的交易对是ERG/USDT。现已开放充值;2021年8月5日UTC时间上午10:00开放交易;2021年8月6日UTC时间上午10:00开放提币。 .

Ergo Foundation

2021年8月3日

Ergo两周年纪念——早期采用者应了解的核心知识

Ergo两周年纪念——早期采用者应了解的核心知识

Normal 0 false false false EN-US ZH-CN X-NONE /* Style Definitions */ table.

root7Z

2021年7月5日

关于Ergo启用官方QQ频道的公告

关于Ergo启用官方QQ频道的公告

由于Ergo官方微信号暂无法使用,Ergo官方现新增Ergo官方QQ频道:796039547。全球中文用户可通过扫描下面的二维码加入Ergo中文社区,及时了解Ergo最新官方动态. .

Eva Qing

2021年6月30日

Ergo首届黑客松大赛ERGOHACK圆满结束

Ergo首届黑客松大赛ERGOHACK圆满结束

Ergo首届黑客松大赛已经圆满结束,它正如计划那样:规模小而富有实验性,但依然收到了一些很棒的作品提交。Kushti以他的开场视频拉开了活动的序幕,然后我们总共有六个团队,其中来自anon_real(AuctionHouse、SigmaUSD UI等项目的创建.

Curia Regis Crypto

2021年6月29日

关于举办首届Ergo中国社区驱动践行活动的公告

关于举办首届Ergo中国社区驱动践行活动的公告

为了进一步提高Ergo公链平台在中国的知名度,让更多用户深入了解Ergo,同时为了践行Ergo社区驱动的理念,Ergo中国社区现特别举办“首届Ergo中国社区驱动践行活动”。活动参与者积极向新用户布道Ergo并将其引至Ergo官方指定社群,将有机会赢取ERG奖.

Eva Qing

2021年6月4日

比特币的前进之路是努力追赶Ergo ——Ergo率先实现扩展UTXO智能合约

比特币的前进之路是努力追赶Ergo ——Ergo率先实现扩展UTXO智能合约

比特币 比特币是一头野兽。是的,其底层软件需要认真升级。它真的太慢了。但是,您也必须承认它的优势,网络效应是非常强大的------比特币是加密货币之王。在全球范围内,比特币正成为一个常见、被理解和被采用的术语。大型信托、投资巨头和对冲基金经理,都被比特币的主.

Curia Regis Crypto

2021年5月23日

关于Ergo基金会任命谭声情先生担任中国区大使的公告

关于Ergo基金会任命谭声情先生担任中国区大使的公告

经Ergo基金会批准,现任命谭声情先生(英文名:Tango)担任Ergo中国区大使。 为了提升Ergo在中国的知名度与影响力,Ergo基金会现授权谭声情先生以Ergo中国区大使身份进行Ergo在中国的品牌宣传、商务洽谈、社区活动、主题推广等事宜。 此任命自.

Ergo Team

2021年5月16日

硬分叉事后说明

硬分叉事后说明

英文链接: 应@kushti的请求,我现在给大家说明一下今天在硬分叉升级期间发生的事情。有一些BUG导致矿工无法出块,现已修补好这些BUG,矿工可以出块。 version2ActivationDifficultyHex中出现往返编码失败(Round-T.

Eva Qing

2021年2月3日

硬分叉升级后Ergo挖矿须知

硬分叉升级后Ergo挖矿须知

Ergo将在区块#417,792上进行硬分叉协议升级。此次升级会引入重大更改,包括将关闭不可外包功能(Non-Outsourceability)。经过此次硬分叉之后,新的PoW(被称为Autolykos v2.

Eva Qing

2021年2月1日

如何设置和配置Ergo全节点

如何设置和配置Ergo全节点

如何设置和配置Ergo全节点 本教程说明了如何安装和运行Ergo全节点,不涵盖挖矿。  Windows用户还可以观看视频教程。 如何在Windows上设置和配置Ergo全节点 视频链接: 节点安全 这里是节点使用的一些重要方面,您的钱包及代币是否安全.

Eva Qing

2021年1月21日

既想享受乐趣,又想赚取利润? ——那就赶紧来挖ERG

既想享受乐趣,又想赚取利润? ——那就赶紧来挖ERG

Ergo GPU挖矿 本文将帮助您开始使用GPU挖矿Ergo原生代币ERG。 Ergo挖矿基于Autolykos,即一种工作量证明(PoW)算法,被设计为阻碍ASIC矿机和矿池。矿工须执行存储困难的计算(需要至少4 GB的内存,但是当前最有效的实现使用的是.

Eva Qing

2021年1月21日

适用于AMD GPU的Autolykos v2(Ergo)的OpenCL挖矿软件

适用于AMD GPU的Autolykos v2(Ergo)的OpenCL挖矿软件

适用于ergoplatform.

Eva Qing

2021年1月19日

适用于Nvidia GPU的Autolykos v2(Ergo)用Cuda挖矿软件

适用于Nvidia GPU的Autolykos v2(Ergo)用Cuda挖矿软件

用于ergoplatform.

Eva Qing

2021年1月19日

尔格基金会为主要去中心化应用(dApp)基础设施提供资助

尔格基金会为主要去中心化应用(dApp)基础设施提供资助

尔格基金会将考虑支持重大生态系统开发项目提供资助的建议。 尔格是一个面向社区的项目,该生态系统的方方面面都有许多贡献者。尔格基金会会拿出一部分资金资助此项工作,这对于构建用户所需的日常产品与服务以及更多样化的金融去中心化应用至关重要。该基金会正在积极寻求.

Guy Brandon

2020年11月17日