Nothing came up for

Dapps on Cardano - A Unique Approach

Lend us your voice!
Audio recordings make content accessible to more people
Record Article
dapps-on-cardano-a-unique-approach-lidonation-article

In previous articles, we learned that DApps are just “Apps” that allow people to use blockchain Smart Contracts through a friendly user interface. We looked at the range of examples of DApps, from Gaming to DeFi, and more. Broadly, these definitions and examples apply to DApps as they exist on any blockchain network that supports Smart Contracts, including Ethereum, Algorand, Cardano, and numerous others. However, when you look under the hood, there are interesting differences in how different protocols handle Smart Contracts. As you might expect, Cardano has a novel and unique approach.

Other networks that support Smart Contract run the entire contract right on the blockchain. On Cardano, they are instead run in two parts. One part is run off the blockchain, by the party interested in the result of the contract. The other part, to validate the off-chain result, is stored and run on the blockchain. This means software engineers have to write two separate pieces of code: one to validate the work, another to do the actual work.

This plays out something like this:

  • First, a developer says, “Hey Cardano, I’m creating a contract that knows how to create ducks. Here is what my duck looks like, here is how it quacks.”
  • Then you, a user, come along. Through an interface, you run the Smart Contract. The Contract creates an output (a duck!), and submits it, along with the contract, to Cardano.
  • Cardano verifies that the contract hasn’t been altered. Then it performs a duck check, by comparing the prescription that lives on the blockchain with the output you just handed it.
  • At the end, you have your duck that lives on the blockchain!

Pros & Cons

There are some downsides of doing it this way. It is challenging for companies who are already building on other blockchain networks to deploy on Cardano, because it is so different! It also makes it a little more expensive on the deployment side, because users cannot call the contracts themselves in their browsers and phones. Companies therefore have to host servers to facilitate thousands or millions of users submit their contract results to the blockchain.

So why do it that way? There are some significant advantages for companies, customers, and network node operators alike:

For both companies and end-users, the huge advantage is that one can know ahead of time exactly how much it will cost to interact with a Smart Contract. This is in contrast to other networks like Ethereum where the entire program is run on the network, making it difficult to predict ahead of time how long it will take for the program to run, and therefore how much it will cost.

In addition to taking the extra step of “saying what you’re going to do” before doing it, Cardano’s Smart Contracts benefit from their programming language, Haskell. Haskell is known for superior verifiability. In tandem, these reduce the risk of costly bugs.

Cardano’s eUTXO accounting model (a cash drawer style accounting system) makes it easy to serve thousands of users in a single transaction to the blockchain. This means that as a business’s customer base grows, they can optimize their Smart Contracts to cost less to run.

Companies build trust based on reliability and predictability, and customers enjoy transactions free of costly surprises.

This method also lowers the cost for node operators - the engines of the decentralized network. On Ethereum, getting started as a node operator requires a minimum investment of $3,000 for equipment, plus $45 to $80/month for electricity to be profitable. By contrast, on Cardano you can profitably help run the network with 3 raspberry pi machines, or basic server hardware running in the cloud. If running your own hardware, an investment of $600 plus $4 to $7 a month for electricity will get the job done. (These modest energy needs can realistically and fairly easily be served by renewable sources, such as solar!)

More people, from more walks of life, can participate in building a more decentralized network that is good for everyone - and the planet.

Conclusion

If you’ve made your way through all three installments of this series, you should now have a good idea of whether getting into DApps on Cardano is the right fit for your business. If you’re a blockchain user, you now have a deeper understanding of how DApps work on Cardano, which can help you avoid beginner mistakes and understand what you are looking at. If you’re considering building a DApp and want to read deeper, we have a series on Cardano’s Plutus Architecture. Start here: Technical Overview: Plutus Architecture.

Because of the trust and integrity Smart Contracts can bring, engineers and businesses will be relying on them more and more, in lieu of human supervision of event-driven software workflows. Like the internet, the better you understand Smart Contracts, the better positioned you will be to thrive in the coming blockchain era.

Get more articles like this in your inbox

What do you like about your favorite Dapps? What networks are they on?

Leave a comment
Share

Related Insights

Beans, Brains, & Blockchains:

Cardano Open For RealFi Businesses

Project Catalyst Mentorship:

The Avalanche Blockchain Platform

No comments yet…

avatar
You can use Markdown

Join our pool!

Unmatched Support
We provide phone and email support for all of our delegates. We understand that many of our community members are not tech or crypto nerds. You expect the same level of service and support you get from Reggie down at the bank or Saiid, your nephew or friend at the office that won't stop talking about Bitcoin. We host weekly meetups (currently online due to Covid). Visit our connect page for all the ways you can reach us.
Best in class servers
Our servers are run and managed by professionals whose only job is to manage and run servers 24/7 365/6 days a year. We run our Cardano nodes on the same servers powering other services you've come to rely on everyday, like Google and Pokemon Go. What this means for you is that our servers are always online and available to process transactions, earning you and the causes we support the optimal amount of $$$$. Visit our pool page for more technical details.
4% for community development and investment
Of all the rewards that come in, we keep 4% annually. All 4% goes towards charities you pick, paying LIDO nation community members like yourself to write code and content for the site, and grants for local community educational projects. See our financials page for full records of our spending, more details, and breakdowns.
An Amazing Community
When you delegate and join LIDO Nation, you get to participate in creating a space for people to interact, meet, learn, and teach each other. You get to be part of the engine that works to make every voice heard with equal importance. LIDO Nation is an idea. Delegate, take it and lets make something great!
EP1: 'd' Parameter
0:00
/
~1:00
1x