IOG research enabled the implementation of multi-asset support, stablecoins, and friendly fees on Cardano
Our previous post discussed Cardano’s innovative EUTXO model and how it facilitates expressive smart contracts on Cardano. This time, we take a closer look at the research that enabled multi-asset support and the creation of a variety of user-defined tokens, and we also discuss the benefits of Babel fees.
Ethereum is known for providing the ability to create various user-defined assets (tokens). However, Ethereum’s token standards are not directly supported by the ledger and require repetitive custom code. This adds a layer of complexity, extra cost, and inefficiency since token code is replicated and adapted rather than being part of the system itself. This leaves room for human error and can introduce bugs potentially leading to financial losses.
The research paper ‘UTXOma: UTXO with Multi-Asset Support’ was written by IOG scientists and presented at the ISoLA 2020 conference. The paper studies the creation of a wide range of user-defined tokens through the use of contract scripts called minting policies.
The paper explores an alternative design to user-defined asset creation based on Bitcoin-style UTXO ledgers. It proposes an extension of the UTXO model, where the accounting structure of a single cryptocurrency is replaced with a new structure that manages an unbounded number of user-defined, native tokens, called token bundles.
In this new model, token creation is controlled by minting policy scripts that, just like Bitcoin validator scripts, use a domain-specific language with bounded computational expressiveness. This favors Bitcoin’s security and results in a lightweight and low cost approach to custom asset creation and transfer.
The ‘Native Custom Tokens in the Extended UTXO Model’ paper suggests a generalization of the EUTXO model with native user-defined tokens. The paper explores the synergy between the native tokens from UTXOma with expressive smart contracts on the basis of a UTXO ledger as proposed by the EUTXO model. This results in more expressive minting policies and a direct mapping of versatile contracts based on state machines to the multi-asset EUTXO ledger. The paper formally establishes the correctness of this mapping.
Besides custom tokens, IOG carried out research on the implementation of a stablecoin on Cardano. The ‘Djed: A Formally Verified Crypto-Backed Pegged Algorithmic Stablecoin’ paper was published in 2021.
The paper introduces a stablecoin contract based on algorithmic design, which uses smart contracts to ensure price stabilization. This is a very useful feature for decentralized finance (DeFi) environments. Djed acts as an autonomous bank. It mints and burns stablecoins and reserve coins while keeping a reserve of base coins. The contract maintains the peg of stablecoins to a target price by buying and selling stablecoins, using the reserve, and charging fees, which accumulate in the reserve.
Djed is currently being implemented by COTI.
The benefits of Cardano’s multi-asset EUTXO model opened up another research avenue that led to ‘Babel fees’. Babel fees is a mechanism that will allow for transaction fees to be paid in coins other than ada on Cardano. The paper has been accepted for publication at ACNS 2022, which took place in June.
Blockchain transactions require fees for their execution. To ensure network security, fees usually must be paid in the currency native to a chosen blockchain, like ada on Cardano, for example. However, allowing the fee to be paid in other valuable tokens that a user possesses improves the convenience of use and also benefits interoperability. IOG’s research in the paper on Babel fees explains how this is possible.
Several innovative features of Cardano, such as the EUTXO model and custom native assets are coming together to enable Babel fees. Cardano’s multi-asset support allows for the creation of tokens treated as native on the ledger. This means that new user-defined tokens — if only enough users consider them valuable — can be used to pay transaction fees just like ada, Cardano’s primary currency.
Manuel Chakravarty, Lambda scientist and Plutus architect at IOG says:
Cardano encourages special-interest communities to form around new custom tokens that these communities create themselves using Plutus. Members of these communities may possess plenty of liquidity in a custom token without holding much ada. To support such communities, we want them to be able to pay for the use of the network using their own tokens.
So when a user wishes to pay the transaction fee in tokens other than ada, they can make such an offer by way of a Babel fee transaction offering a custom token, but incurring an ada liability. A block producer that validates this transaction can then accept this offer setting up a spot trade between ada and the offered token(s) at a previously advertised exchange rate. The block producer then creates a second transaction, covering the fee in ada, while receiving the offered tokens in exchange. By suitably extending the ledger rules, the transaction with the liability - as well as its matching transaction - become admissible to the ledger as a group. The beauty of the scheme is that users who stake their ada still get the staking reward paid out in ada as usual.
Manuel Chakravarty adds:
The next step towards the implementation of Babel fees on Cardano is to write a Cardano Improvement Proposal (CIP) on the basis of the research paper. We will present this to the community for discussion as soon as the first version is complete.
With multi-asset and smart contract support introduced to Cardano in 2020-2021, the ledger became a functional environment for the creation of myriad decentralized applications (DApps). Now with over a thousand projects building on Cardano, IOG research and development is focused on Cardano’s scaling and steady optimizations. So, in the next blog post, we’ll reflect more on the research driving Cardano’s scalability and interoperability.