Learning Ergo 101 : eUTXO explained for human beings

Blockchain Paradigms

  1. Account based

eUTXO (extended Unspent Transactions Output)

  • Consider the Ergo blockchain as a Dataset of Boxes.
  • Each Box contains assets: Cryptocurrency (Either ERG and/or other tokens)
Ergo blockchain is a collection of Boxes
  • As a user of the Ergo blockchain you can interact with some of those boxes.
  • Applications built on top of Ergo work by using existing boxes and creating new boxes
  • Each Box contains crypto assets (namely Erg or other coins)
An Ergo Box
Each box contains some crypto assets

Transactions

A transaction : Operation we can apply on existing unspent boxes

The Script field

  • Each box has a script.
  • A script is a chunk of logic which evaluates to a boolean value: True or False.
  • At transaction time the script of the input boxes is evaluated.
    If the evaluation returns true then your transaction is successful and the output boxes are created.
  • In the ergo blockchain the programming language you can use to define the script field is called ErgoScript.
  • ErgoScript is on purpose quite limited
  • Because ErgoScript is very constrained the Ergo blockchain can know in advance the cost of executing that script. This might not be very relevant for this blog post , but this is a core differentiator from other blockchain systems. This is the reason why transaction costs in Ergo are fixed.
  • As a programmer you can define your own script and use them in your boxes.
  • By using the script field along side boxes and transactions you can model solutions to problems. This is the core of building DApps in Ergo and Cardano.
Assets associated to a wallet
  1. There are one or more unspent Boxes that in total contain 100ERG
  2. Those Boxes’ script corresponds to the wallet’s public key (public address).
    This script is guarding the box such that If you want to use any of those boxes in a transaction, you need to provide a signed message proving you are the owner of the companion private key.
  3. When your wallet app wants to know your balance it scans the blockchain looking for unspent boxes whose script corresponds to your public wallet address.
Balance of a wallet

Final thoughts

References and further reads :

--

--

--

Working on Recommendation Systems, NLP and Data Engineering🗼🇯🇵 @dav009

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Coinmarketcap Solar Network Quiz Answers: Learn & Earn $20 SXP

Everything About the Useful Features of Cloud 2.0

Chainlink (LINK) Explained in 60 Seconds

The world’s first strategy simulation game based on algorithmic stable currency meta universe

ADPlug Core Value

Shopify NFT : The Complete Guide For Your Shopify Store

Announcing Metarun’s IDO on MoonStarter

Early Access to Morphie Network Validator program

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Przybilla

David Przybilla

Working on Recommendation Systems, NLP and Data Engineering🗼🇯🇵 @dav009

More from Medium

Cardano Exclusive — Premiering DAO-driven NFTs

Memecoins & NFTs, hot garbage or a good investment? — The Philosophy of Memes

Is Staking Good For The Cardano Ecosystem?-1

Introducing HedgeDAO, The First Decentralized Autonomous Organization Being Built On Cardano