Are You an Ambitious Entrepreneur Aspiring to Launch a World-Class Web3 Project? GRAB your WEB3 EXPERT CONSULTATION!
Book a Session!

DPoS: Delegate and Conquer

DPoS Delegate and Conquer

In the twenty-first century, we no longer need banks to verify our transactions. We also don’t need them as third parties, as computational powers are no longer a problem. How did this come to pass? It’s our pleasure to reveal all the necessary information on protocol consensus types and their differences.

Transactions on Blockchain

It is worth mentioning that transactions on blockchain contain not only valuable digital assets, but also messages (data). Each transaction has an input (the set of numbers that represents the wallet of the sender) and an output (the wallet of the receiver). Also, each block is encrypted by a hash, which is a unique figure generated by the system.

No matter how long or short your message is, the hash will always contain 256 bits, according to SHA-256 (Secure Hashing Algorithm 256).

To record a transaction on the blockchain, one must arrange it in blocks. On Bitcoin, for example, the maximum block size is 1MB; on Ethereum, it depends on gas, with a maximum point of around 8 million gas.

Let’s see how the blockchain looks in practice:

how blockchain looks in reality

The Magic of Mining

The majority of people working with blockchain technology now see the mining process as a profitable act, and consider it an important goal. However, mining is a tool that helps make sure that coins are generated from nothing, and are spent only once. This is the reason why accurate records are possible on the distributed ledger.

Basically, mining a block means using a computer with sufficient computational power to solve an NP-class problem. This is, in fact, a mathematical problem that the computer solves automatically. Literally, the miner tries to hash the header of the block to get a set of numbers containing 256 bits, which should be less than or equal to the block hash. Otherwise, the miner tries changing the nonce until the computer generates the target hash value.

The question becomes the time the device spends to figure out the puzzle, as the first node that mines the block gets a reward in cryptocurrency. The essential point is that only delegates may mine the blocks. These are defined in different ways depending upon the type of consensus the network uses.

The Process Of Mining

In Proof of work, a leader-based consensus, the leader is the node that is the first to prove its real identity and solve the puzzle. In Proof of stake, the leader is mostly defined by the stake they hold. “Mostly” means that the algorithm of choosing the leader varies according to the type of PoS.

As soon as the leader finds the matching hash, the block is considered mined. Other nodes stop processing it and search for another unmined block. Having finished mining, the miner broadcasts to the network for verification. If more than 51 percent of the users “say” this block is valid, it is added to the distributed ledger.

On each blockchain, whether it is Bitcoin or Ethereum, users have to agree on the common consensus type they will use while mining blocks. Currently, both Bitcoin and Ethereum communities use the Proof of work (PoW) consensus type. However, in order to solve the scalability issue, the Ethereum blockchain is likely to turn to the Proof of stake consensus.

Proof-of-Work

As previously mentioned, to mine a block means to find the correct answer that matches the hash of the mined block. As this process is fully automated and based on mathematical laws, there is no chance of fraud or cheating. Only proof of the work can satisfy the system — that’s why the consensus type is called Proof of work.

Additionally, PoW consensus allows the mining of blocks to nodes that figure out the NP problem.

Proof-of-Stake

Another consensus type, which is as popular as PoW, is Proof of stake. The main advantage of PoS over PoW is that there is no need for computational powers. Users will not spend the monthly norm of electricity expenditure on generating just one block. How is this possible? Applicature explains further.

In networks that agree to use Proof of stake consensus, the “who’s faster” principle doesn’t work. Instead, consensus is designed in such a way that the biggest stakeholders have the opportunity to mine the blocks first and get a reward.

How Does PoS Work In Reality?

Let’s review a simple example of how PoS works: if node A has a stake of thirty coins, node B has twenty coins, and node C has ten, then node A is most likely to be the first to mine the block and get the reward.

The biggest advantage of PoS over PoW is that users are able to mine blocks even from their phones. Significant computational power is no longer needed. The analogy to computational power in PoS is the amount of the stake. The bigger the stake, the higher the probability to be first who validates the block.

Basically, on blockchains that follow Proof of stake consensus, the rich become richer, and consequently gain more control in the network. On the other hand, if one user or entity buys out a majority of the coins in the network (more than 51% in Bitcoin or 66% in EOS and Cardano), it will impact the currency, resulting in a price drop. Consequently, it will require more resources than the profit it will bring.

An upcoming consensus that the Ethereum blockchain plans to adopt is PoS Casper, which is a hybrid of PoW and PoS. To mine a block, you will have to solve the puzzle, which means you need computational power. However, the blocks will be referred to the nodes in random order, depending on which percentage of the stake you own (like in PoS). This solves two issues: scalability and trust.

As Casper is under development, the Ethereum platform will adopt it as soon as the one comes out.

Stake Lock

Incidentally, any node that owns a certain amount of cryptocurrency has to make a deposit in order to gain the right to be a validator. In other words, a node has to lock a certain amount of his/her money, which later will be considered as stake to compare with another node.

If a node possesses 2% of the cryptocurrency, he/she will have the option to mine 2% of the blocks on the blockchain.

The system of PoS consensus gives the biggest stakeholders the right to create blocks in a random order.

PoW vs. PoS

Initially, there are three main differences between the PoW and PoS consensus types:

the difference between Proof of work and Proof of stake

The fact that the two biggest decentralized platforms — Bitcoin and Ethereum — are following the PoW consensus type makes it more costly for entities to mine and generate new tokens. Nodes on platforms like EOS use their stake size as an equivalent to computational power on PoS.

Moreover, in both PoW and PoS, the rewards process is very similar: a miner gets a coinbase reward plus a transaction fee set by the node that generated it — or the reward could consist of only fees. As we know, to expedite a transaction validation, users increase the fee, which consequently becomes a reward for mining.

Let’s consider the substantial differences between these two technologies. One-block mining time on Bitcoin is around ten minutes, while on Ethereum, it varies from ten to nineteen seconds. The block time (the time you spend mining one block) is less than a minute. Yes! It is indeed. Also, experienced blockchain researchers would say that super-fast transactions are also possible on Bitcoin and Ethereum with their scaling solutions: Lightning and Raiden Network.

Each technology needs improvement; otherwise, newcomers will overtake it. This happened to the Proof of stake protocol: some blockchain platforms turned Delegated Proof of stake in order to meet the requirements of the community.

Delegated Proof-of-Stake Consensus Type

Thinking of consensus protocol as a policy, DPoS would equal a representative democracy. How? Find out in the description below.

Because Bitcoin transactions take a lot of time and form huge validation pools, there has arisen the need to create a new technology that will overtake the speed of Visa/Mastercard transactions.

Daniel Larimer, creator of the DPoS algorithm, predicted the future centralization of the Bitcoin platform due to the limited number of tokens available for generating, and designed an algorithm that:

  • promises an extremely fast validation time
  • doesn’t require computational powers for mining

On the Bitcoin platform, a transaction is considered valid only after more than 51% of the nodes have confirmed it, which takes time due to the huge number of nodes in the community. Daniel Larimer prevented this by limiting the number of witnesses that have the right of transaction validation. This allows considerable shortening of the verification line. Consequently, transactions become valid much more quickly than with the Proof of work protocol.

How Does DPoS Work?

Let’s imagine that there is a blockchain platform with a community of one hundred nodes. DPoS is associated with democracy in this way: nodes have to vote in order to choose twenty witnesses who will run the network. Only these twenty nodes have the right to validate transactions.

Computational power doesn’t solve any problems here; the only driving force that the node needs is a stake he/she owns. The bigger the stake, the stronger the voting power. It means that Bob, who has ten coins, will influence the witnesses’ choice more than Alice, who has only one coin.

The witnesses, 20 nodes who have the right to validate transactions, earn a salary for the work they do on the network. And validating transactions is not the only duty to perform. Witnesses are also chosen to keep the network secured.

As more people join the network, the competition gets tougher and the positions of the witnesses become more highly paid, so almost every node in the network wants to become one. Consequently, when a witness starts doing a faulty job, users may take their votes back, which will bring a certain witness to a sack and will create a vacant position. The real-time voting process never stops.

The next president in the witness position will become a node with a perfect reputation and voting experience.
To empower DPoS and ensure that no fraud is allowed, in EOS, all nodes are bound by the EOS constitution: a legal agreement in which all delegates respect consensus.

Is DPoS Perfect?

As we all know, nothing is perfect, especially technology. There is always somebody who will design something better, faster, more efficiently or more profitably. The same is true for consensus protocols on blockchain — each solves a certain issue, which potentially creates another one for future protocols to fix.

There are two factors that give DPoS consensus higher priority on the market:

  • it solves the problem of the need for computational power
  • it promotes decentralization

However, while the number of delegates is shortened to a certain number, cutting transaction processing time, it prevents the platform from reaching full decentralization. According to the fact that increasing the number of witnesses causes scalability issues and constant growth of the network, it should balance between the number of generated blocks and scalability on the platform. This situation, however, has an extremely low chance of occurring.

This is not the only possible threat to the network, as choosing a certain number of delegates causes the probability of collision, which impacts trusting relationships in the community. It’s true that delegates are frequently reelected by the community if they perform badly, but not in the moment of the attack. The issue remains a weak point in DPoS consensus protocol.

EOS Precedent

As an example, let’s recall an incident that occurred on the EOS platform. A node claimed that his private key was stolen, and someone had transferred his money to an unknown wallet. According to the constitution of EOS, there should have been an arbiter who verified the transaction and supervise the 21 delegates to make sure the arbiter made the correct choice. The transaction, claimed as fraudulent, was in fact confirmed by both. The node gave a command to change the state of the transaction. The nodes approved this, leading to blockchain state overwriting.

If one node can do it, that puts the whole DPoS consensus idea under threat of being considered unreliable.

PoS vs. DPoS

Although PoS and DPoS have the same basic algorithms of a stake defining the power of a certain node, they also have differences.

The validation time of one DPoS transaction is much faster than the one PoS transaction. This refers to the number of nodes required to verify each transaction. If transactions on the platforms that follow PoS need 51% of thousands of nodes to validate a transaction, DPoS consensus platforms require the same 51%, but of only twenty nodes.

Additionally, the witnesses (DPoS algorithm) have some duties to conduct and rules to follow so they can stay in the witness position longer in order to get paid. From the other side, there is PoS protocol, which has nothing to do with the reputation of the node. It’s more about who gets the opportunity to mine the block first.

Look up the image below to find out more about PoS and DPoS characteristics:

the difference between Proof of stake and Delegated Proof of stake

DPoS Implementations

The delegated Proof of stake consensus type has found hundreds of implementations on the blockchain. Currently, more and more platforms based on blockchain technology are choosing to use DPoS, as it helps conquer the scalability issue and build businesses more efficiently.

Basically, the advantages DApps get from being built according to DPoS consensus are scalability and low transaction fees.

Applicature would like to provide a list of the most popular and useful blockchain platforms that use DPoS consensus protocol.

Graphene Technology

Obviously, technology doesn’t start over, and as a result of this, the crypto community got Graphene technology — a software platform for creating and executing blockchains of the third generation.

Graphene gives its adopters a higher performance rate than the one provided by Bitcoin 2.0.

The first blockchain that implemented Graphene was BitShares, a financial opportunity platform.

BitShares

The documentation on BitShares claims it to be the first decentralized autonomous network in which users can decide the direction their BTS tokens will take in the future. What differentiates the Bitshares platform from other networks using smart contracts is the fact that on BitShares, smart contracts are used as operations.

While most other blockchain platforms follow the Proof of work consensus, BitShares implemented a delegated Proof of stake algorithm in order to avoid the scalability issue that slows the Bitcoin network down so much.

With DPoS, the BitShares platform replaces a wasteful mining procedure, processes many more transactions per second, and requires fewer fees. Due to the fact that computational power is not needed when working with DPoS, the mining process requires dramatically less electricity, which is a winning point in terms of environmental protection.

Another platform similar to the BitShares blockchain is Steem: same technology, but with a different idea behind it.

Steem

Steem is a blockchain using the third-generation decentralized ledger of Graphene technology.

BitShares and Steem are often associated with each other because of the similarity of the technology under the hood; however, BitShares concentrates on financial DAapps, while Steem is media-oriented.

Moreover, publishers have the opportunity to earn money for the content they post and the hype they make around it. When you post a certain bit of information to the network, users vote for the post, which gives you Steem power and potential rewards in crypto.

The transactions on Steem are near-instant and the fees are free. That is why you can’t find a better platform for developing DApps connected to media.

One more DPoS implementation is “Ethereum on dope” — EOS!

EOS

The idea of EOS, which is an enhancement of Graphene, is to form a valid, reliable base for building decentralized applications. EOS is the perfect environment for financial applications, as it takes less time to validate transactions by only twenty-one witnesses. In addition, the twenty-first witness frequently changes, which means that the other twenty vote for its change.

The distribution of EOS tokens is closed by a market cap of $3,509,780,111 USD. The price of EOS tokens is not set; instead, demand on the crypto market predetermines it.

Similar to Ethereum, the EOS network allows the building of DApps on the top of it. Applicature will provide a range of fields that EOS DApps cover:

  • media
  • data services
  • social networking
  • wallets
  • money exchange
  • gaming
  • development
  • education
  • Fintech
  • recruitment
  • healthcare
  • education

This is even not a complete list, which shows how developed the network is as a base for creating decentralized applications.
By the way, there are only high-performing, C++ written DApps on the EOS platform. Unfortunately, EOS doesn’t provide PowerShell commands yet; thus, users are not able to develop DApps with Windows software. However, development is available with MacOS, Ubuntu, Debian, and Fedora.

Lisk

The reasons each blockchain network uses DPoS protocol are similar; however, the business implementation is quite different because of the possibilities each provides. Let’s take an extended look at the advantages Lisk has over its competitors.

First of all, developers can write code for DApps on JavaScript. Additionally, Lisk offers tools for customizing your sidechain. Oh, right, we didn’t mention? Creating a DApp on Lisk, users basically, form sidechains with an easy and comprehensive means of communication with the mainnet.

The Lisk mainnet is the host of all sidechains that hold their DApps. It also has its own coin, the LSK, with a market cap of $174,180,275 USD. The users of Lisk can build ICOs on it.

In terms of consensus, Lisk follows the DPoS protocol, with 101 delegates users can vote for. However, the power of the votes is predefined by the amount of LSK coins a user holds. In the whole ecosystem, only these 101 delegates have the right to create blocks.

There is another platform very similar to Lisk that opens sidechains for DApps: Ark. Discover what the difference is.

Ark

The Ark ecosystem maximizes the simplicity of building DApps and increases developer productivity with its sophisticated design and expendable software. The documentation claims that users (those who build DApps) will be able to create their own blockchains, which is true: sidechains are created for each DApp.

The algorithm that the Ark network uses is, as you may have already figured out, delegated Proof of stake, which makes transaction processing time near-instant. In comparison to Lisk, which has 101 delegates, Ark allows 51 witnesses to validate transactions and generate blocks.

One more essential difference between Ark and Lisk is that the nodes on Lisk vote for 101 delegates, while on Ark, you may vote only for one of 51.

Conclusion

Blockchain has become a remedy for an unreliable financial system, and a promising heir to the throne in terms of a globally-adopted financial relationship provider. Transparency and security became possible and easy to implement with user consensus within the blockchain network.

The first ever developed blockchain — Bitcoin — functions according to a Proof of work consensus: nodes solve NP-class problems, which requires much computational power. This makes the mining process and maintaining the node quite a money-consuming process in comparison with Proof of stake protocol.

Working on a blockchain that follows Proof of stake consensus, nodes don’t need to be powerful enough for mining. Instead, the stake plays a defining role. The bigger the stake the user owns, the higher the possibility of mining the block first.

If the Bitcoin network solves its scalability issue with the Lightning Network, Vitalik Buterin is currently working on delegated Proof of stake consensus for the Ethereum Blockchain.

What differentiates PoS from DPos is that in PoS, nodes with a bigger stake get transactions for verification in random order, but DPoS expects the community to vote for a certain number of delegates.

Nodes who become delegates as a result of a real-time voting should obey the rules of the network and keep it secure. Only these nodes have the right to validate transactions and generate blocks, thereby receiving rewards in crypto.

In case this article left you with any questions we didn’t clarify, please contact the Applicature consulting team.

Insights from our Consulting Department

November 20, 2024
Revolutionizing Web3: An Interview with Ian Arden of Applicature on Blockchain Innovation and the Future of Technology
November 19, 2024
Nov 19, 24, Weekly: Crypto Market Surges as BlackRock Sparks $30 Trillion Bitcoin Prediction

Leave a Reply

Your email address will not be published. Required fields are marked *

+1-209-813-2474 |  25 Belle Avenue, San Rafael