Making sense of Decentralized Applications

When we hear about Distributed Ledger Technology (DLT) most of us think of Bitcoin. But a potentially more useful (albeit less popular) DLT solution is Decentralized Application (DApp). The following article is a high-level overview of the subject and is based on the lecture our colleague gave on the subject at the Oradea IT Bridge event.

From Web 2.0 to 3.0

Web 2.0 is the internet of the current age. It relies on content distribution, social interaction and engagement, and information exchange. Think of Facebook and Twitter as a very good example. A small part of the content is being generated by these platforms and instead, users are doing all the work. While this is a very usual activity, these social networks generate revenue from the back of its users. It is still true that almost all services can be freely used, but at what underlying cost? Users don’t really have control over their data, and this is a growing concern [1].In Web 2.0 behemoths like Google, Facebook, Amazon control most of the internet’s data and there is no room for competition, thus they have the most computing power, they can hire the best talent. Furthermore, users don’t control their own data.

About blockchain

A blockchain, (originally block chain), is a growing list of records, called blocks, which are linked using cryptography. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data. By design, a blockchain is resistant to modification of the data [19].Check out this video for an animated explanation.Decentralized applications run on a P2P network of computers rather than a single computer. They have existed since the advent of P2P networks. They are a type of software program designed to exist on the Internet in a way that is not controlled by any single entity.

Most of us have already used a certain type of DApps.

The following app names might ring a bell: BitTorrent, Popcorn Time, BitMessage, Tor, etc [15].The advantages of these types of applications include:

  • Transparency (in some cases)
  • Real-time tracking
  • Security (in some instances even more than necessary)
  • No single point of failure
  • Reduced cost (will discuss this later on)
  • Trusted transaction
  • No third party involvement

Popular DApps

Steemit is a platform where you can write blog posts and comments and get rewarded for it for the number of upvotes they receive. It’s powered by the Steem blockchain which is free, fast and scalable.CryptoKitties is built around the concept of collectible items. As its name infers, it’s all about kittens. Players can buy and breed kitties from which new kitties with new traits can emerge. The digitized cats are stored on the Ethereum blockchain as ERC-721 non-fungible tokens [16]. Transactions from this game are flooding the Ethereum blockchain [17].Arcade City and Chasyr are two competitors to Uber and Lyft. Both run on the Ethereum blockchain and their main focus being decentralizing the ride-sharing ecosystem. These two DApps mirror the best of what a DAO could be. Their purpose is to get rid of the middle man, in this case, Uber and Lyft, and bring all the power to the actual people that run the services, the drivers. Part of the envisioned benefits would be lower fees for everyone.Peepeth is a blockchain-powered social network. It’s actually a copy of Twitter. It runs on Ethereum and IPFS which is decentralized storage, similar to Filecoin and STORJ.Also worth mentioning: Restart Energy, ID2020 and Dock.

Should you consider building your App as a DApp?

Before you can answer this question you might want to do thorough research on the matter[2, 3, 5]. The following set of questions can enlight you in this regard.

  • Do you believe in the idea?
  • What problem does it solve?
  • How does it solve it?
  • Does it reduce the complexity as a whole?
  • Do you need an ICO [4, 6]?
  • Who are the main beneficiaries of the end product?
  • Can it be run by itself?

If you have a positive answer to the above questions, then you might consider trying it out.

A successful DApp will give users more control and more recognition for their contribution.

Limits/threats

Scalability [7] is one of the big issues of blockchain today. One characteristic that is extremely important is Speed. If we look at Bitcoin and Ethereum, they perform very poorly in terms of transactions per second(TPS) compared to ~1,7k TPS of Visa [7]. Bitcoin and Ethereum run at about 3-4 TPS and respectively 7-8 TPS [10]. The blockchain space is currently working hard towards increasing these numbers, with Lightning network coming to Bitcoin and Raiden network to Ethereum.There are other blockchains that got built with Speed and Fees in mind, like IOTA and EOS.IOTA [18], which is actually a blockDAG, uses a protocol called Tangle [9] which does not have a built in maximum throughput, requires no transaction fees as there are no miners in the network. The principle behind it being, the more users the faster it goes. IOTA is still centralized, which they say it would go away.EOS implemented one of the most popular alternatives to Proof of Work(PoW), that being Proof of Stake(PoS). It actually uses a slightly modified version called Delegated Proof of Stake(dPoS). It can handle around 4k TPS [7] but comes with a centralization trade-off, where key shareholders have more power than the rest of the community.Another point worth mentioning in terms of threats is human error [11] when it comes to coding and testing. Despite being a few decades old,

blockchain technology is still in its infancy and thus new concepts come with new challenges and new implementations with new bugs.

One of the most famous of them all is the DAO Exploit [11] where $150M in Ether was stolen by attackers because of a bug in the code.The most known limits/threats: Scalability in terms of low speed and high storage, high fees, high centralization of miners(mining pools), the cost of computing power, vulnerability to quantum attacks.

In lieu of a conclusion

After decades of academic research and proposed solutions in the space of ecash [12], the creation took place on August 18th, 2008 when the bitcoin.org domain name was registered. Later that year, on October 31, Satoshi Nakamoto published the title Bitcoin: A Peer-to-Peer Electronic Cash System to a cryptography mailing list[12].Since then, the space of blockchain based systems has evolved tremendously:While we can argue that there is still much confusion around the technology, nevertheless it is continuously progressing. I like to think of the current state of DLTs as of the internet in the early ‘90s.It remains to be seen weather DLT solutions will be implemented at a large scale, but it sure raised questions regarding privacy and generated new problems that will be solved with peer to peer connection and cryptography. I hope that these solutions will also be of use in other domains.

Try out things regardless of the immediate failiures, as the solution will present itself on the go.

A famous thought experiment was previously proposed, where the system is always in all possible states and only once you measure it(actually look at it) you know for sure which one it is [14].So go out there, try stuff out, break it and learn from it.

Bibliography

  1. https://github.com/llSourcell/Web3.0_Explained/blob/master/Web%203.0%20.ipynb
  2. https://hackernoon.com/10-insights-from-investors-how-they-evaluate-ico-projects-e05c00cc8607
  3. https://hackernoon.com/breaking-blockchain-a-framework-to-evaluate-blockchain-use-cases-9efbc30a3fa7
  4. https://coindesk.com/evaluate-blockchain-initial-cryptocurrency-offering
  5. https://medium.com/datadriveninvestor/in-this-blog-post-we-will-take-an-in-depth-look-at-the-main-aspects-of-my-qualitative-and-6bcd5ec6d761
  6. https://icodevelopment.io/
  7. https://hackernoon.com/the-blockchain-scalability-problem-the-race-for-visa-like-transaction-speed-5cce48f9d44
  8. https://medium.com/everything-blockchain/the-6-limitations-of-blockchain-technology-2d1b686c0293
  9. https://iota.org/research/meet-the-tangle
  10. https://blockchain.com/explorer
  11. http://hackingdistributed.com/2016/06/18/analysis-of-the-dao-exploit/
  12. https://en.wikipedia.org/wiki/History_of_bitcoin
  13. https://cryptocurrencyguide.org/wp-content/uploads/2018/03/1_W78LZJW1D_Cd6kTlX4yAmg.png
  14. https://en.wikipedia.org/wiki/Schr%C3%B6dinger%27s_cat
  15. https://blockchainhub.net/decentralized-applications-dapps/
  16. http://erc721.org/
  17. https://medium.com/blockchainspace/blockchain-kitties-ambiguous-effects-on-ethereum-f3d8ca854b76
  18. https://youtube.com/watch?v=B37UbzPlSzw
  19. https://en.wikipedia.org/wiki/Blockchain

Read more articles

5 Ways to optimise manufacturing costs through technology

Published on:
June 19, 2024
Read article

How Business Analysts & UX Designers make for killer teams

Published on:
May 29, 2024
Read article

Shielding patient data: Top strategies for data privacy in health tech

Published on:
March 21, 2024
Read article

What are the most important Cyber Security trends in 2024?

Published on:
February 22, 2024
Read article

Qubiz at the AHK New Year's Reception 2024

Published on:
February 6, 2024
Read article

Qubiz Internships: From Software Development intern to team member

Published on:
January 9, 2024
Read article