Inside the blockchain developer’s mind: Blockchain consensus, Part 1

Inside the blockchain developer’s mind: Blockchain consensus, Part 1

Cointelegraph is following the development of an entirely new blockchain from inception to mainnet and beyond through its series, Inside the Blockchain Developer’s Mind. In previous parts, Andrew Levine of Koinos Group discussed some of the challenges the team has faced since identifying the key issues they intend to solve and outlined three of the “crises” that are holding back blockchain adoption: upgradeability, scalability, and governance. This series is focused on the consensus algorithm: part one is about proof-of-work, part two is about proof-of-stake and part three is about proof-of-burn. 

In this article, I want to leverage my unique perspective to help the reader gain a deeper understanding of a popular concept in blockchain technology, but also one that is woefully misunderstood: the consensus algorithm.

Our top trading bots

In order to gain a deep understanding of this component of a blockchain, one of the things I always like to do in these articles is begun by taking a step back and looking at the big picture because the consensus algorithm is just one small part of a much larger system.

Blockchains are a game in which players compete to validate transactions by grouping them into blocks that match the blocks of transactions being created by other players. Cryptography is used to hide the data that would allow these people to cheat. A random process is used to distribute digital tokens to people who play by the rules and produce blocks that match the blocks submitted by other people. These blocks are then chained together to create a verifiable record of all the transactions that were ever performed on the network.

Inside the blockchain developer’s mind: Blockchain consensus, Part 1

When people produce new blocks with different transactions in them, we call this a “fork” because the chain is now forking off into two different directions. This is the exact opposite of what we want to happen. The whole value of a blockchain stems from the fact that everyone agrees — has come to a consensus — on what transactions happened when. Consensus algorithms are therefore intended to resolve forks.

Satoshi’s real innovation

At the end of the day, what ensures that everyone updates their database to match one another boils down to how they are punished when they do not. The protocols contain rules for the proper ordering of transactions, but if there is no repercussion for violating those rules, they will be ineffective. The real innovation that Satoshi Nakamoto delivered in the Bitcoin (BTC) white paper was his elegant use of economic incentives.

Satoshi Nakamoto did not invent the idea of the “electronic coin.” He created an elegant system for combining cryptography with economics to leverage electronic coins, now called cryptocurrencies, to use incentives to solve problems that algorithms alone cannot solve. His design forced people to sacrifice money in order to mine blocks of transactions. People would have to sacrifice this money over and over and over by playing by the system’s rules and trying to organize transactions into blocks that would be accepted by everyone else in the network. If they did this long enough, they would receive a reward in the currency of the platform.

Of course, there’s no way for the blockchain to know that money was spent in the form of USD, yen, or euro, which is why he used a proxy in the form of meaningless work. He made the mining of blocks unnecessarily hard so that anyone who successfully mined a block necessarily must have spent money on hardware and the energy to run that hardware. So every block successfully mined is backed by money that had been sacrificed not just on the hardware, but on the energy required to run that hardware and produce that block. Whenever there are forks, proof-of-work (PoW) consensus algorithms are an automated system whereby the fork backed by the most work is the “right” fork.

Related: Proof-of-stake vs. proof-of-work: Differences explained

This means that everyone who continues producing blocks on that fork will continue to earn rewards and that everyone who continues producing blocks on the other fork will not earn rewards. Since these people have already spent their money to acquire hardware and run it to produce blocks, the punishment is easy because they’ve already been punished monetarily. They spent their money so if they want to continue producing blocks on the wrong chain, that’s fine. They won’t earn any rewards and they won’t make their money back. They will have sacrificed that money for nothing. Their blocks won’t get accepted by the network andthey won’t earn any tokens.

This proof-of-work system ensures that the only way someone who does not want to play by the rules, a malicious actor, is to acquire and run more hardware than everyone else combined, such as by mounting a 51% attack.

Inside the blockchain developer’s mind: Blockchain consensus, Part 1

This is the elegance behind proof-of-work. The system cannot work without sacrificing ever-increasing amounts of capital. Satoshi combined cryptography and economics to create a ledger of transactions that is so trustworthy, it is trustless.

There are, however, different consensus algorithms that operate in slightly different ways. The most well-known of which is proof-of-stake (PoS), which I’ll be discussing in the next article in this series. After that, I’ll be discussing the algorithm we’ll be using in Koinos which is a first-of-its-kind in a general purpose blockchain.

The views, thoughts and opinions expressed here are the author’s alone and do not necessarily reflect or represent the views and opinions of Cointelegraph.

Andrew Levine is the CEO of Koinos Group, where he and the former development team behind the Steem blockchain build blockchain-based solutions that empower people to take ownership and control over their digital selves. Their foundational product is Koinos, a high-performance blockchain built on an entirely new framework architected to give developers the features they need in order to deliver the user experiences necessary to spread blockchain adoption to the masses.
Keep reading upon Cointelegraph
Bob Dylan goes meta as Sony and Universal partner with Snowcrash NFT platform
Solana-based NFT marketplace Snowcrash has announced that Sony Music and Universal Music Group — the two largest music labels in the world — have officially...
Redditor stashes away BTC worth $100 for 100 years in public library
There’s never a dull day in Bitcoin (BTC) land. Despite that markets calling for a lull, the creative Bitcoin community always has cause for amusement....
‘We are 50% of the way there,’ says Vitalik on Ethereum’s development
Vitalik Buterin has walked listeners through a five-part roadmap on the latest Bankless podcast where he outlined the necessary steps for Ethereum to survive...
More billionaires turning to crypto on fiat inflation fears
Previously anti-crypto investors are increasingly turning to Bitcoin and its brethren as a hedge against fiat currency inflation concerns.One example is...
Listing frenzy! Coinbase adds nearly 100 crypto assets for trading in 2021
As of today, Coinbase has 139 tradable assets. The exchange added a whopping 83 assets to its trading list in 2021, nearly double the number of assets it...
Third-biggest Bitcoin whale’s holdings total $6B after ‘whopping’ 2.7K BTC buy-in
Bitcoin (BTC) returning to $50,000 overnight inspired one of the largest wallets to buy the equivalent of $137 million more.Blockchain data from on-chain...
SHIB plummets 20% as Elon Musk reveals he owns none
Shiba Inu (SHIB), the recently surging Dogecoin-inspired ERC-20, suffered a 20% retracement in two hours as Tesla founder and hypothetical Doge CEO Elon...
Federal High Court of Nigeria approves eNaira CBDC rollout
The Nigerian Federal High Court joins the growing list of regulators across the globe to approve the rollout of a central bank digital currency (CBDC) as...
Eastern European victims sent $815M to Ponzis and scams in the past year
Recent research has revealed that Eastern Europe remains a very high source of cybercrime activity — both from victims to scams, and from users to darknet...
Illuvium hits new highs as interest in NFT-based blockchain gaming skyrockets
The world of nonfungible tokens and blockchain gaming has seen immense growth and progress towards mainstream adoption in 2021. Recently, the movement picked...
Here’s 5 ways investors can use the MACD indicator to make better trades
The Moving Average Convergence Divergence, also called the MACD, is a trend-following momentum indicator used widely by traders. Although the MACD is a...
Crypto markets tumble after miners unload 5,000 BTC in one week
The crypto markets are against dropping, with Bitcoin crashing below $33,000 for the first time since May 23 as Ethereum similarly broke below support at...
New DeFi ‘passport’ could enable under-collateralized crypto loans
Decentralized finance (DeFi) protocol Arcx has announced the launch of Sapphire v3, a DeFi passport allowing crypto users to pseudonymously build and verify...
Price analysis 5/28: BTC, ETH, BNB, ADA, DOGE, XRP, DOT, ICP, UNI, BCH
Earlier this week billionaire investor Carl Icahn’s told Bloomberg that he is considering entering crypto in a big way but this hardly made any difference...
Mark Cuban owns 30% ETH because it’s ‘closest to a true currency’
Billionaire Mark Cuban believes Ethereum is the closest thing we have to being a true currency and views Bitcoin as a better alternative to gold.The Shark...