Multilingual content from IBKR

Close Navigation
Learn more about IBKR accounts
Blockchain Explained – Part II

Blockchain Explained – Part II

Posted December 29, 2021 at 2:00 pm
Udisha Alok

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:

Disclosure: Interactive Brokers

Information posted on IBKR Campus that is provided by third-parties does NOT constitute a recommendation that you should contract for the services of that third party. Third-party participants who contribute to IBKR Campus 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 its permission. The views expressed in this material are solely those of the author and/or QuantInsti and Interactive Brokers 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 buy or sell any security. It should not be construed as research or investment advice or a recommendation to buy, sell or hold any security or commodity. 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.

Disclosure: Bitcoin Futures

TRADING IN BITCOIN FUTURES IS ESPECIALLY RISKY AND IS ONLY FOR CLIENTS WITH A HIGH RISK TOLERANCE AND THE FINANCIAL ABILITY TO SUSTAIN LOSSES. More information about the risk of trading Bitcoin products can be found on the IBKR website. If you're new to bitcoin, or futures in general, see Introduction to Bitcoin Futures.

IBKR Campus Newsletters

This website uses cookies to collect usage information in order to offer a better browsing experience. By browsing this site or by clicking on the "ACCEPT COOKIES" button you accept our Cookie Policy.