Blockchain Explained – Part II

QuantInsti

Contributor:
QuantInsti
Visit: QuantInsti

See Part I for an overview.

How it all comes together

In the previous section, we saw how data is stored on a blockchain. But you may wonder what makes this any different from any other database. Let us now understand the blockchain’s properties that give it the edge over other technologies and make it disruptive.

A blockchain is a distributed ledger. The data on the blockchain is a set of transactional records. Each block is timestamped. Once the data is recorded on the blockchain in the form of a block, it is broadcast to all the nodes. So a copy of the ledger will reside at each of the nodes in the network.

In case any node gets corrupted, the data is updated using the remaining peer nodes. As we have seen earlier, once recorded, the data cannot be altered or changed as it will cause the remaining nodes to become invalid.

Hence, a blockchain is immutable – it is an immutabledistributed ledger.


Components of a Blockchain

Let us look at the components of a typical blockchain to understand how it works.

A shared ledger

As we saw earlier, the block is the data structure used to record the data in a blockchain. The blocks are chained to the preceding blocks and organized chronologically. This blockchain is a digital ledger that records all the transactions on a blockchain network, shared with all the nodes.

The nodes

Many computers are a part of the blockchain network. Addition to this network may be voluntary or based on some rule- for example, a banking blockchain network may allow only banks to join. Each node maintains a current updated copy of the ledger.

The consensus algorithm

Let us imagine a meeting where the person who comes and stands on the dais gets a reward. Only one person is allowed to stand there. Can you imagine the chaos that will follow? Everyone will fight to be the one at the dais.

But what if a question is asked and the first one to answer that question comes to the stand? Or maybe each person can submit a list of attendees who support her and vote for her to take the stand?

In each of these situations, we can reach a consensus without arguments.

Blockchain technology applies a similar principle. In the case of a peer-to-peer network such as a blockchain, a consensus algorithm (or a consensus protocol) is used to decide which node will add the next block to the blockchain because the node doing it will be rewarded.

Every time a new block is to be added, the nodes compete as per the consensus algorithm, and the winning node gets to add the block to claim the reward. These nodes are called miners.

In a generic context, the consensus algorithm may be thought of as a methodology to adjudicate who decides the current state of the blockchain. It is a way to establish trust between independent parties. That is why the blockchain is also sometimes referred to as the ‘trust protocol.’

Different blockchain networks may use different consensus algorithms. For example, Bitcoin uses Proof-of-Work (PoW), where the miners compete to solve a complex mathematical problem and the node that solves it first gets to add the block and claim a reward.

Proof-of-Stake (PoS) is the consensus algorithm used by Ethereum wherein the nodes are required to lock some coins (usually more than the cost of the block to be added) with the system, and the winner is decided based on the size of the stake.

There are many other consensus algorithms like:

  • Proof-of-Capacity,
  • Proof-of-Burn (PoB),
  • Proof-of-Elapsed Time, and
  • Practical Byzantine Fault Tolerance (PBFT), etc.

Stay tuned for the next installment in which Udisha Alok will review the strengths of Blockchain.

Visit QuantInsti for additional insight on this topic: https://blog.quantinsti.com/blockchain/

Disclosure: Interactive Brokers

Information posted on IBKR Traders’ Insight that is provided by third-parties and not by Interactive Brokers does NOT constitute a recommendation by Interactive Brokers that you should contract for the services of that third party. Third-party participants who contribute to IBKR Traders’ Insight are independent of Interactive Brokers and Interactive Brokers does not make any representations or warranties concerning the services offered, their past or future performance, or the accuracy of the information provided by the third party. Past performance is no guarantee of future results.

This material is from QuantInsti and is being posted with permission from QuantInsti. The views expressed in this material are solely those of the author and/or QuantInsti and IBKR is not endorsing or recommending any investment or trading discussed in the material. This material is not and should not be construed as an offer to sell or the solicitation of an offer to buy any security. To the extent that this material discusses general market activity, industry or sector trends or other broad based economic or political conditions, it should not be construed as research or investment advice. To the extent that it includes references to specific securities, commodities, currencies, or other instruments, those references do not constitute a recommendation to buy, sell or hold such security. This material does not and is not intended to take into account the particular financial conditions, investment objectives or requirements of individual customers. Before acting on this material, you should consider whether it is suitable for your particular circumstances and, as necessary, seek professional advice.

In accordance with EU regulation: The statements in this document shall not be considered as an objective or independent explanation of the matters. Please note that this document (a) has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and (b) is not subject to any prohibition on dealing ahead of the dissemination or publication of investment research.

Any trading symbols displayed are for illustrative purposes only and are not intended to portray recommendations.

Disclosure: Digital Assets

Trading in digital assets, including cryptocurrencies, is especially risky and is only for individuals with a high risk tolerance and the financial ability to sustain losses. Eligibility to trade in digital asset products may vary based on jurisdiction.