Off-chain Logic and eUTXO

Curia Regis Crypto

October 4, 2021

Advantages of eUTXO


There is a significant difference between the account and eUTXO models. In the account model, all the logic is on-chain but this has been found to cause scalability issues. In the eUTXO model, only the smart contract validation itself is performed on-chain while other parts of the smart contract are off-chain. 

In order to clarify this, consider the off-chain part as a black box which reads the blockchain status (UTXOs), runs all the computations, and finally generates one or more txs (transactions). These txs (results of the off-chain part) are then sent to the blockchain to be verified.

The blockchain verifies the txs and if the txs requirements are satisfied they will be mined, thereby changing the status of the blockchain (UTXO set). 

As a result, only smart contract validation is performed on-chain and all other logic is off-chain. This means tx validation can be incredibly efficient and scalable - a major advantage of the eUTXO model.

The issue of scalability is one of the main reasons Ethereum is attempting to push transactions to Layer 2/Sidechain scaling solutions that are governed by off-chain code. In essence, the solutions Ethereum is exploring in order to address its scalability concerns mimic the eUTXO model in practice.

 

For the most part, there is industry consensus that on-chain logic is decentralized by nature, and therefore superior. What about the off-chain logic? Can off-chain logic be distributed? 

 

In eUTxO, off-chain logic can be written within a range of completely centralized to completely decentralized. For example, in ErgoMixer the off-chain part is decentralized. You run it on your computer but users also have the ability to run their own off-chain logic. Off-Chain logic can be distributed or localized and run by each user, thus ranging from centralized to widely distributed. 

ErgoDEX Distributed Bot Solution

ErgoDex has been testing, and will implement, a bot solution that allows the distribution of offchain logic to be run concurrently. While contrary to Ergomixer’s use of off-chain logic (where each user is running their own individual off-chain logic), the off-chain bots can be distributed and bot-runners can earn an execution fee. This execution fee is similar to a transaction fee and it will be preset before funds are sent.

This incentivizes actors to run these distributed bots, as well as gives users clarity with regard to pricing. This way, every actor has an equal chance to gain a portion of the network with economical incentives. The off-chain code will become more and more decentralized as the usage of the platform increases.

The additional revenue created by users running bots seems to integrate particularly well into smaller mining pools, as well as single pool operators in Cardano. It is our goal to work with these parties from the beginning to encourage decentralization.  

 

Decentralization is achieved depending on the number of actors that chose to run off-chain bots. There is also additional economic incentive for miners to participate in this solution while honoring the trust and transparency that proof of work provides. 

eUTxO Assumptions


As eUTxO continues to roll out, we will witness some dApps where the off-chain logic is not necessarily decentralized. The question will be whether or not this is an issue? It will depend on the function of each unique dApp and if the users are aware of the assumptions they need to make. These dApps can also choose a model that decentralizes or distributes off-chain logic. But is this necessary? My guess is probably not, depending on the function of the dApp.

Transaction verification will still be on-chain, however the incentives may not be in place to encourage users to run this logic in a decentralized fashion. I do not see this being an issue when taking into consideration that some dApps may be for a special purpose or provide a very simple service.

However, the eUTxO model does create some additional assumptions that users need to be aware of and this is why Ergo is in the process of putting together the KYA (Know Your Assumptions) initiative.

The KYA would function similarly as a “Terms and Conditions Agreement” and is 

designed to inform users about trust and cryptographic assumptions of a blockchain, contract, update possibilities, level of control by protocol masters, etc.

 

The goal of a KYA would be to prevent rug pulls, scams and protect investors. 

With regard to off-chain logic, understanding KYA is very important. Currently, users trust security audits of blockchains/dApps, but an audit just certifies that logic is intended by the contract. An audit is not a proof of security in all aspects, just the proof of a contract's intention.

There needs to be KYA regarding the potential for updates of both on-chain and offchain logic because the distribution of off-chain logic indicates the level of trust each actor is placing on the dApp. Custodial power between parties may potentially be an important assumption to understand as well. 

The reality is all of these assumptions are important to on-chain logic. The only difference is off-chain logic does add an additional layer of complexity that will need to be addressed by both eUTXO and account model blockchains. Off-chain logic includes L1 (Layer 1) dApps, like ErgoDEX, as well as L2 (Layer 2) models like side-chains.

Share post

Bene V2 is Here: Multi-Asset Fundraising, Expanded Wallet Support, and Enhanced UI

Bene V2 is Here: Multi-Asset Fundraising, Expanded Wallet Support, and Enhanced UI

The ecosystem of decentralized applications (dApps) on Ergo is constantly evolving.

Ergo Platform

November 28, 2025

Ecosystem Update: Duckpools Rolls Out V2 Site Preview

Ecosystem Update: Duckpools Rolls Out V2 Site Preview

The team behind Duckpools, a prominent lending and borrowing protocol on the Ergo blockchain, has released a comprehensive develop.

Ergo Platform

November 26, 2025

Ecosystem Spotlight: USE, a Universal Stablecoin for Ergo

Ecosystem Spotlight: USE, a Universal Stablecoin for Ergo

With the protocol nearing deployment, the Community Liquidity Bootstrapping (CLB) event is set to begin on November 25th, allowing.

Ergo Platform

November 24, 2025

Rosen Bridge Nears Bitcoin Runes Launch

Rosen Bridge Nears Bitcoin Runes Launch

Rosen Bridge has entered the final phase for its Bitcoin Runes integration. You can now set up your Bitcoin-Runes watcher.

Ergo Platform

November 23, 2025

GitCircles and Ergo: Fair Rewards for Open Source Contributions

GitCircles and Ergo: Fair Rewards for Open Source Contributions

Open source software powers much of the digital world — from the apps on your phone to the infrastructure of the internet itself.

Ergo Platform

October 12, 2025

Bitcoin Runes + Rosen Bridge: A Practical Path for Multi-Chain Fungible Assets

Bitcoin Runes + Rosen Bridge: A Practical Path for Multi-Chain Fungible Assets

The big idea Bitcoin finally has a clean way to represent fungible tokens.

Ergo Platform

September 30, 2025

ChainCash: Money That Carries Its Own Story

ChainCash: Money That Carries Its Own Story

ChainCash records reserves and signatures for each note on Ergo.

Ergo Platform

September 23, 2025

Braiding Lunarpunk and Solarpunk through Merged Mining

Braiding Lunarpunk and Solarpunk through Merged Mining

The question is simple.

Ergo Platform

September 2, 2025

Machina Finance: Off-Chain Execution, On-Chain Trust

Machina Finance: Off-Chain Execution, On-Chain Trust

Machina Finance is an innovative, bot-driven decentralized exchange (DEX) being developed on the Ergo blockchain.

Ergo Platform

September 1, 2025

Ergo Infrastructure DAO: Decentralizing the Backbone of the Ergo Ecosystem

Ergo Infrastructure DAO: Decentralizing the Backbone of the Ergo Ecosystem

Ergo’s mission has always been rooted in decentralization, not just at the consensus layer, but across the entire stack.

Ergo Platform

August 13, 2025

Mew Finance: A Playful DeFi Toolkit for the Ergo Ecosystem

Mew Finance: A Playful DeFi Toolkit for the Ergo Ecosystem

Mew Finance is a decentralized application suite on the Ergo Blockchain.

Ergo Platform

August 12, 2025

Lithos: Decentralizing Mining with On-Chain Pools

Lithos: Decentralizing Mining with On-Chain Pools

Lithos is a new protocol designed to overhaul how mining pools work by moving them on-chain, giving miners full control, and elimi.

Ergo Platform

July 24, 2025

Sigma 6.0: A Smarter, More Flexible Ergo

Sigma 6.0: A Smarter, More Flexible Ergo

Sigma 6.0 is a major proposed upgrade to the Ergo blockchain.

Ergo Platform

July 23, 2025

Shaping Rosen's Future: A Community Call on Five Key Treasury Proposals

Shaping Rosen's Future: A Community Call on Five Key Treasury Proposals

Rosen co-founder, Armeanio, has submitted five new proposals to the Rosen Treasury.

Ergo Platform

July 9, 2025

Ergo's Extended UTXO and the Rise of Artificial Economic Intelligence

Ergo's Extended UTXO and the Rise of Artificial Economic Intelligence

A Practical Vision for Autonomous Economic Agents Autonomous economic agents on the Ergo blockchain perform useful work in a real.

Ergo Platform

May 12, 2025

ErgoHACK X: Artificial Intelligence on the Ergo Blockchain

ErgoHACK X: Artificial Intelligence on the Ergo Blockchain

Celebrating a Decade of Decentralized Innovation Join the 10th anniversary ErgoHACK and be at the forefront of the AI revolution o.

Ergo Platform

April 10, 2025

Ergohack 9: Innovations in UI/UX and Mining – Meet the Visionary Winners!

Ergohack 9: Innovations in UI/UX and Mining – Meet the Visionary Winners!

The latest annual Ergo hackathon, ErgoHack IX, was a six-day event held at the end of October.

Ergo Platform

December 9, 2024

ErgoHack IX: Next Steps Towards Increased Adoption

ErgoHack IX: Next Steps Towards Increased Adoption

We’ve come a long way since the early days of Bitcoin, and cryptocurrencies have boomed into an industry with thousands and thousa.

Ergo Platform

October 20, 2024

Ergo Vs Other Blockchain Platforms: What’s The Difference?

Ergo Vs Other Blockchain Platforms: What’s The Difference?

Ergo offers a series of unique features that set it apart from other blockchain platforms.

Ergo Platform

August 19, 2024

Earning With The Rosen Bridge

Earning With The Rosen Bridge

Bitcoin has officially bridged to the Ergo ecosystem via Rosen Bridge! This newly built, decentralized infrastructure enables trus.

Ergo Platform

August 8, 2024

How Sigma Chains Will Bring Bitcoin To Ergo

How Sigma Chains Will Bring Bitcoin To Ergo

Ergo’s powerful, flexible, and secure smart contract functionality opens the door to a whole host of new use cases for Bitcoin DeF.

Ergo Platform

July 15, 2024