Blockchain Consensus Mechanisms

Proof-of-Work and alternative consensus algorithms, advantages and disadvantages of Proof-of-Work as well as its working process, the role of hash and the way to find it, the difference between dual and hybrid mining

In our blockchain dedicated section we have already explained the meaning of blockchain oracles and the difference between permissionless and permissioned blockchains. Here we provide an article about consensus algorithms that are used in blockchain and take a look at some of their most popular models.

Blockchains are decentralized continuously growing databases. A blockchain needs its network of nodes to run it. To add new data, the majority of the network must agree on it. Agreement mechanisms are called consensus algorithms. Proof-of-Work is the most common consensus algorithm and is used in Bitcoin.

How does it work?

To create a block, a miner collects unconfirmed valid transactions, puts them together in a block, and then seals it by finding the hash of the block. A hash is a set of random symbols produced by running the block data through a hashing algorithm. If you change as much as one bit in the block, the hash will be completely different. A hash is difficult to generate but easy to check if it corresponds to the block. It proves to other miners that the creator of the block really did the work, hence Proof-of-Work.

How exactly do you find a hash?

Go to this hash generator and type a set of words in the ‘input’ field. The website will instantly give you the hash of your input data (your set of words). Finding a hash of the block, however, is not that easy because the hash has to meet difficulty requirements. Now go back to that site. Try putting in some numbers to the end of your set of words until your hash starts with 0. This, in principle, is exactly what miners do. They input transaction details instead of words and try different random values (nonce values) until their hash has, for example, 16 zeros in the beginning. They, fortunately, do not have to do it manually, the software uses their computer power to quickly put it nonce values to get the necessary hash.

How secure is Proof-of-Work?

Proof-of-Work is one of the most secure algorithms as it requires a lot of computing done in a short amount of time. To change a block, an attacker will have to find the block’s hash and the hashes of consequent blocks in just 10 minutes. The older the block is, the harder it is to change it. This is why the original bitcoin client marks a transaction as confirmed after it is at least 6 blocks deep.

What are its flaws?

Proof-of-Work is very demanding in terms of computing resources and, thus, consumes a lot of electricity in the process. This means that a lot of coal needs to be burnt, which does not at all alleviate the current environmental issues but only aggravates them. In light of this, many alternatives, more ecological, consensus mechanisms have been proposed and implemented in other blockchain networks.

  • Proof-of-Stake, for example, chooses a random validator for the next block from a group of nodes based on their deposited coins: if the validator adds an invalid block, they lose their deposit.
  • In Delegated Proof-of-Stake, the deposit owners vote to elect delegates to do the validation.
  • Proof-of-Capacity lets miners use empty space on their hard drives to store solutions for blocks ahead of time, which relieves them from the necessity of finding blocks in real time.
  • Proof-of-Weight is another consensus protocol that lets nodes show their interest in the stable work of the network. For example, in a file storage system, validators are chosen based on the amount of space they provide for the blockchain.

Dual and hybrid mining

It is possible to mine two different cryptocurrencies using a single GPU. This is called dual mining. You can simultaneously mine, for example, ethers and siacoins because they use different mining algorithms, Ethash and Blake 2b respectively, but do not affect each other’s performance too much.

Hybrid mining is mining two different coins with the same hashing algorithm at the same time. It is different from dual mining in that it requires two or more GPUs on a single system.

Related news

SonicX: New Blockchain Platform as a Competition to Libra?

Coinspeaker SonicX: New Blockchain Platform as a Competition to Libra?SonicX, a blockchain platform that provides trust, top-notch security and efficiency decided to develop a payment gateway that facilitates not only peer-to-peer transactions but also a tokenized system for content storage and online gaming.Appreciating the natural fit of blockchain decentralized platform and secured payment system for businesses like gaming, the SonicX team provided solutions to these challenges by building a decentralized platform for the internet users — using the SOX token; a blockchain architecture that has scalability at minimum cost and an ecosystem that will enable internet users to have their own digital governance.This blockchain platform is based on Tron’s architecture. As per that, SonicX will also be able to take advantage of Tron’s features. Some of the advantages include huge increasing of the platform’s TPS (transactions per second) and implementing its own digital governance that allows token holders to have voting rights that benefit the community in global.However, it is important to mention that the token (SOX) can also be used for making cross-border payments and that is what it makes it stand out as a potential global competitor to Facebook’s Libra currency.Big tech companies like Apple, Google, and Facebook have become stock market sensations, but it’s high valuations cannot really help them in the FinTech space. In fact, success could show as of a big problem for any tech major that wants to enter the payments space.As it’s already known, Facebook’s coin would be based on a very different idea than Bitcoin.Unlike Bitcoin, which is an open system, Libra is closed and will be highly protected.Facebook announced the currency in partnership with 27 major corporations including Visa, Mastercard, Lyft and Uber. These founding members constitute the Libra Association, which will be in charge of processing transactions for the network and maintaining its version of the blockchain.SonicX created a system that is in-line with the foundational philosophy of Bitcoin and makes it a viable global payment system. Also, let’s not forget, smaller companies like SonicX not only enjoy the advantage of flying under the radar of the government, but also have open-source code they can rely on.Libra aims to target a wide variety of services that integrates with Facebook and as that, it is ideal for micro-payments. However, it is pegged to fiat reserves so it’s a stable-coin, that will start off as highly centralized and eventually move over to a DPoS (Delegated Proof-of-Stake) system.The SOX tokens value is, on the other hand, determined by the free market and not pegged to fiat reserves. Although that can mean more volatility, the case for SOX over Libra is in value against fiat.SonicX is also great for e-gaming and cross-border payments. While specific to this market, it only means that it has a strong use case for it. Even though Libra appears more viable for transferring value over Facebook’s ecosystem, not everyone may want to use it. What if users do not want to use their Facebook account for making cross-border payments? In that case, their option is to use a permission-less and trust-less system like SonicX.SonicX: New Blockchain Platform as a Competition to Libra?
Coinspeaker

Verify a Product’s Origin within 5 Seconds with the Blockchain Application for Supply Chain by LINA NETWORK

On June 12, as dawn broke in Bangkok, PROPAK ASIA 2019 was commenced. “We highly recognize the potential of LINA NETWORK’s solution for Supply Chain in the supervision and tracing of agricultural products,” commented the Chairman of AIM Thai Intertrade. PROPAK ASIA 2019 in Thailand is one of Asia’s largest technology exhibitions, attracting 50,000 visitors […] The post Verify a Product’s Origin within 5 Seconds with the Blockchain Application for Supply Chain by LINA NETWORK appeared first on CCN Markets
CCN

Hot news

By continuing to browse, you agree to the use of cookies. Read Privacy Policy to know more or withdraw your consent.