Different Blockchains: Ethereum vs Cosmos vs Hyperledger And More!
are all the rage right now. More and more people are trying to get into this amazing space for one reason or another. If you are new to this technology and are looking for a quick primer on blockchain-based developing platforms then this guide is perfect for you. The platforms that we are going to be focussing on and comparing are:
Blockchain Battle: Ethereum vs Cosmos vs Cardano vs EOS vs Hyperledger
So, why have we decided to focus on these 5? We feel that this group gives a healthy mixture of usability and functionality. Yes, we know that some of these projects are not exactly live, but we still feel that the potential of the projects is enough to warrant a place on our list. We are going to go through each and every platform and then compare them at the end.
is, without a doubt, the big daddy of . The main man behind
is Vitalik Buterin. Buterin was fascinated with Bitcoin, but he realized that the blockchain technology had far more use than being a mere facilitator of a payment protocol. He realized that one can use the
to create decentralized applications. That was when he was inspired to create .
Ethereum, like Bitcoin, was a cryptocurrency, however, that’s where the similarity ends. Because while Bitcoin is a “first-generation” blockchain, . Ethereum revolutionized the crypto-space by bringing in
were first conceptualized by Nick Szabo. The idea is simple, have a set of self-executing instructions between two parties which don’t need to be supervised or enforced by a third-party. The idea seems pretty straightforward, right? However, smart contracts enabled Ethereum to create an environment wherein developers from around the world could create their own
application aka Dapps.
Dapps and Smart Contracts
Dapp creation is one of the most important features of Ethereum. Along with being decentralized, there are certain other features that a Dapp must have:
Sounds pretty awesome right? So, how exactly can you build them? You need tos using .
Developers use a
Along with creating the smart contract, you must have an environment where you can execute it. However, there are some properties that this execution environment must have. These properties are:
Property #1: Deterministic
A program is deterministic if it gives the same output to a given input every single time. Eg. If 3+1 = 4 then 3+1 will ALWAYS be 4 (assuming the same base). So when a program gives the same output to the same set of inputs in different computers, the program is called deterministic. The environment must make sure that execution of the smart contract is always deterministic.
Property #2: Terminable
In mathematical logic, we have an error called “halting problem”. Basically, it states that there is an inability to know whether or not a given program can execute its function within a time limit. In 1936, Alan Turing deduced, using Cantor’s Diagonal Problem, that there is no way to know whether a given program can finish in a time limit or not.
This is obviously a problem with smart contracts because, contracts by definition, must be capable of termination in a given time limit. So the environment must be able to halt the operation of the smart contract.
Property #3: Isolated
, anyone and everyone can upload a smart contract. However, because of this the contracts may, knowingly and unknowingly contain virus and bugs.
If the contract is not isolated, this may hamper the whole system. Hence, it is critical for a contract to be kept isolated in a sandbox to save the entire environment from any negative effects.
Ethereum executes its smart contracts using a virtual machine called Ethereum Virtual Machine (EVM).
The next core Ethereum concept that one must understand is .
What is Ethereum Gas?
Remember the “Terminable” property of smart contract environments? Well, Ethereum
achieves this property by utilizing gas. Each and every line that is coded in the smart contract requires a certain amount of gas to execute. So, when a developer submits a smart contract for execution, they also specify the maximum gas limit.
Think of the gas limit as the fuel you fill up in your car before going for a drive, the moment the fuel runs out, the car stops working. Each and every line in the smart contract requires a certain amount of gas to execute. Once the gas runs out, the smart contract stops executing.
Ethereum and ICOs
We have covered this topic at length before so we will just go over this very briefly. One of the most alluring features of Ethereum is initial coin offering or s. Developers around the world can use Ethereum’s virtual machine to power their smart contracts and use the platform to raise lots of money in a crowded sale with relative ease. Because of this very feature, Ethereum’s adoption has gone through the roof.
Ethereum as of right now is using the
mining, i.e. the same used by . Basically, miners compete to find the next block in the chain by using their processing power to solve complex cryptographic puzzles.
Ethereum is eventually going to move on to Proof-of-Stake by utilizing the . POS is far more environmentally friendly than POW and is a lot more scalable.
There is no doubt of the impact that
has had on the crypto-space, however, there are some major problems surrounding its performance. As of right now, Ethereum fails when it comes to scalability. They can only manage 25 transactions per second, which is not ideal for Dapps who want mainstream adoption. On top of that, Ethereum can be expensive for developers. The gas prices for the execution of Dapps can go through the roof.
Along with these, there is one more problem that affects Ethereum and other . This problem is interoperability. As of right now, if Alice owns Bitcoin and Bob owns Ethereum, then there is no easy and direct way for the two to interact with each other. This is a really big issue because in the future, there may be thousands of blockchains running in parallel and there should be a way for them to interact seamlessly with each other.
One project that is aiming to solve this interoperability problem is .
aims to become an “internet of blockchains” which is going to solve these problems once and for all. Cosmos’s architecture consists of several independent blockchains called “Zones” attached to a central blockchain called “Hub”.
Image Credit: Cosmos Video
According to the Cosmos whitepaper, “The zones are powered by , which provides a high-performance, consistent, secure PBFT-like consensus engine, where strict fork-accountability guarantees hold over the behavior of malicious actors. Tendermint Core’s BFT consensus algorithm is well suited for scaling public proof-of-stake blockchains.”
The brains behind this project are CEO Jae Kwon and CTO Ethan Buchman and the Interchain Foundation team.
Tendermint is a variant of PBFT i.e. Practical Byzantine Fault Tolerance. A Byzantine Fault Tolerance, or BFT, the system is a system which has successfully answered the Byzantine Generals Problem. We have covered the Byzantine Generals Problem in
To keep things short, for a decentralized peer-to-peer system to function in a trustless manner, it is imperative for them to find the solution to the Byzantine’s Generals Problem.
As the cosmos whitepaper states:
“ provides exceptional performance. In benchmarks of 64 nodes distributed across 7 data centers on 5 continents, on commodity cloud instances, Tendermint consensus can process thousands of transactions per second, with commit latencies on the order of one to two seconds. Notably, the performance of well over a thousand transactions per second is maintained even in harsh adversarial conditions, with validators crashing or broadcasting maliciously crafted votes.”
The graph below support the claim made above:
Image Credit: Cosmos Whitepaper
As we have mentioned before, Cosmos’s architecture will follow the Hub and Zones method. There will be multiple parallel blockchains connected to one central Hub blockchain. Think of the Sun and the solar system.
The Cosmos hub is a distributed ledger where individual users or the Zones themselves can hold their tokens. The zones can interact with each other through the Hub using IBC or Inter Blockchain Communication.
See the diagram above?
This is a very simplified version of how two Zones communicate with each other via IBC.
The interoperability achieved by Cosmos has some extremely interesting use-cases:
The brainchild of Ethereum co-founder Charles Hoskinson,
however, Cardano offers scalability and security through layered architecture. Cardano’s approach is unique in the space itself since it is built on scientific philosophy and peer-reviewed academic research.
Cardano is a third-generation
and interoperability to the blockchain space. There are three organizations which work full time to develop and take care of Cardano:
These three organizations work in synergy to make sure that Cardano development is going on at a good pace.
There is one really interesting quality that makes Cardano unique as compared to the other smart contract platforms. Majority of the other smart contract platforms are coded via imperial programming language. Cardano uses Haskell for its source code, which is a functional programming language. For its smart contracts, Cardano uses Plutus, which is also a functional language.
Let us explain the difference between the two types of languages in a straightforward way.
In imperative languages, addition works like this:
int a = 5;
int b = 3;
c= a + b;
As you can see, it takes a lot of steps. Now, how will that work in a functional language?
Suppose there is a function f(x) that we want to use to calculate a function g(x) and then we want to use that to work with a function h(x). Instead of solving all of those in a sequence, we can simply club all of them together in a single function like this:
This makes the functional approach easier to reason mathematically.
Functional languages helps with scalability and it also helps in making the program far more precise.
Cardano uses a new proof of stake algorithm called Ouroboros, which determines how individual reach consensus about the network. The protocol has been designed by a team led by OHK Chief Scientist, Professor Aggelos Kiayias.
Ouroboros is the first proof of stake protocol that has mathematically been shown to be provably secure, and the first to have gone through peer review through its acceptance to Crypto 2017, the leading cryptography conference.
The way Cardano plans to execute interoperability is by implementing sidechains.
Sidechain as a concept has been in the crypto circles for quite some time now. The idea is very straightforward; you have a parallel chain which runs along with the main chain. The side chain will be attached to the main chain via a two-way peg.
Cardano will support sidechains based on the research by Kiayias, Miller, and Zindros (KMZ) involving “non-interactive proofs of proofs of work”.
According to Hoskinson, the idea of sidechains comes from two things:
are aiming to become a decentralized operating system which can support industrial-scale decentralized applications. The driving force behind EOS is Dan Larimer (the creator of BitShares and Steemit) and Block.One.
recently came into the spotlight for their year-long ICO which raised a record-breaking $4 billion.
That sounds pretty amazing but what has really captured the public’s imagination is the following two claims:
achieves its scalability via the utilization of the delegated
(DPOS) consensus mechanism, which is a variation of the traditional proof-of-stake. It can theoretically do millions of transactions per second.
So, how is DPOS different from traditional POS? While in POS the entire network will have to take care of the consensus, in DPOS all the
holders will elect 21 block producers who will be in charge of taking care of the consensus and general network health. Anyone can participate in the block producer election and they will be given an opportunity to produce blocks proportional to the total votes they receive relative to all other producers.
The DPOS system doesn’t experience a fork because instead of competing to find blocks, the producers will have to co-operate instead. In the event of a fork, the consensus switches automatically to the longest chain.
As you can imagine, the importance of these block producers definitely can’t be underestimated. Not only do they take care of consensus, but they take care of overall network health as well. This is why it is extremely important that each and every single vote that has been cast has proper weightage.
This is why, Larimer introduced the idea of Voter Decay, which will reduce the weightage of old votes over time. The only way that one can maintain the strength of votes is by regular voting.
The Voter Decay mechanism leads to two great advantages:
This has the potential to be a truly revolutionary concept and can change decentralized voting (maybe even voting) forever.
works on an ownership model where users own and are entitled to use resources proportional to their stake, rather than having to pay for every transaction. So, in essence, if you hold N tokens of
then you are entitled to N*k transactions. This, in essence, eliminates transaction fees.
tokens you get certain computational resources in exchange. You will get:
, along with payment coins, can also be used as a toll to get all these resources.
Finally, we have .
Hyperledger, to be very frank, is extremely different from all the platforms that we have talked about so far. While Ethereum, Cardano, and EOS are proper cryptocurrencies and have their own blockchains, Hyperledger is not a cryptocurrency, and nor does it have its own blockchain. Hyperledger is an open-sourced project by the Linux Foundation. On their , Hyperledger describes itself as
“an open source collaborative effort created to advance cross-industry blockchain technologies. It is a global collaboration, hosted by The Linux Foundation, including leaders in finance, banking, Internet of Things, , manufacturing, and Technology.”
Platforms like Ethereum,
etc. are all public blockchains, meaning, anyone can choose to join the network. However, for big
infrastructure, this is highly undesirable.
Think of a blockchain conglomerate of banks.
Banks need to deal with sensitive data every single day. From their internal transactional records to KYC data, there are lots of items which they simply can’t reveal to the public. Plus, only banks that have been vetted by the other banks present in the network should be allowed inside the network.
Also, as we have already covered before, public blockchains are slow and have performance issues, which is again a big no-no for large-scale companies.
Hyperledger allows these companies to create their own high-performance permissioned blockchain (aka blockchains where each and every node must be vetted properly before entering).
Maybe the most interesting project in the . Rather than a single
of blockchain based solutions with a modular architecture.
With Fabric different components of Blockchains, like consensus and membership services can become plug-and-play. Fabric is designed to provide a framework with which enterprises can put together their own, individual
to more than 1,000 transactions per second.
Along with Fabric you also have:
Different Blockchains: Comparing all the Platforms
Alright, so now that we have somewhat familiarized ourselves with these platforms, let’s compare all of them.
Like what you’re reading?
Join our community and get access to over 50 free video lessons, workshops, and guides like this! No credit card needed!
Hungry for knowledge?
New guides and courses each week
Looking to invest?
Market data, analysis, and reports
A community of blockchain experts to help
Get started today
Already have an account?