BC Unit1
BC Unit1
INTRODUCTION TO BLOCKCHAIN
What is a blockchain
The name comes from its structure, in which individual records, called blocks, are linked
together in single list, called a chain. Blockchains are used for recording transactions made
with cryptocurrencies, such as Bitcoin, and have many other applications.
Each transaction added to a blockchain is validated by multiple computers on the Internet
(Miners). These systems form a peer-to-peer network.
Contents of a Block.
Blockchain starts with a block. Each block stores the following information in it:
1. Index: Position of the block in blockchain. Index of genesis block is 0.
2. Time stamp: The time when that particular block was created.
3. Hash: Numeric value that uniquely identifies data just like our fingerprints.
4. Previous hash: Hash value of the previous block. For genesis block, this value is 0.
5. Data: Data stored on the node. For example, transactions.
6. Nonce: It is a number used to find a valid hash. To generate this number, the
processing power is used.
Applications of Blockchains
P.PRABBU SANKAR AP/CSE 2 VEL TECH MULTI TECH
Blockchain can be used in practically all those scenarios where middlemen are involved.
Here are some of the use-cases.
2. Advertising: Currently, companies like Google and Facebook control almost all of the
digital advertising traffic of the world. However, Blockchain can potentially eliminate that.
Here, Google and Facebook are essentially middlemen that control the advertising ecosystem.
Using Blockchain the producers and the consumers can be connected directly through a
decentralized system.
Real Estate: In the Real Estate industry, there are middlemen in the form of brokers who
often charge exorbitant fees for pairing the buyer with the sellers. Using Blockchain, such
middlemen can be eliminated to save the cost. Basically, instead of relying on centralized
advertising/listing portals, a Blockchain can be used where the producers (advertisers or real-
estate sellers) can provide their ads/listings and consumers can see them directly without any
middlemen.
3. Healthcare: The health records of patients can be securely stored in a Blockchain so that
when the patient visits another doctor, he/she can directly share those records with the new
doctor. The best part about using Blockchain here is that there is no need for a centralized
portal where these records are stored. Therefore, the cost can be lowered significantly. Health
records could include a lot of things like:
Diagnostic by doctor
Medical History
Lab reports
4. Voting: Online voting has been resisted by many due to concerns such as security and
fraud. Blockchain can successfully eliminate these concerns as it will present a clear record of
the votes that have been cast. The tamper-proof feature of a blockchain makes it difficult to
hack a
blockchain-enabled voting system. With blockchain, the voting process can be carried out
comfortably from the confines of the voter’s homes. This may result in a significant rise in
voter turnout.
5. Insurance: Arguably the greatest blockchain application for insurance is through smart
contracts. These contracts allow customers and insurers to manage claims in a transparent and
secure manner. All contracts and claims can be recorded on the blockchain and validated by
the network, which would eliminate invalid claims, since the blockchain would reject multiple
claims on the same accident.
6. Media: Media companies have already started to adopt blockchain technology to eliminate
fraud, reduce costs, and even protect Intellectual Property (IP) rights of content - like music
records.
P.PRABBU SANKAR AP/CSE 3 VEL TECH MULTI TECH
7. Taxes: Blockchain tech could make the cumbersome process of filing taxes, which is
prone to human error, much more efficient with enough information stored on the blockchain.
2008: The first description of Bitcoin was published in 2008 by an individual or a group
under the pseudonym “Satoshi Nakamoto” in a now very famous white paper.
2009: The Bitcoin Network goes live and the first Bitcoins are mined.
2010: The first cryptocurrency stock exchange for trading Bitcoin is launched.
2011: One Bitcoin equals one USD.
2013: One Bitcoin now equals 100 USD.
2014: Microsoft starts accepting Bitcoin as payments.
2017: One Bitcoin equals 10'000 USD.
What is Consensus?
However, getting a no-conflict decision agreement by each person in a group seems far-fetched.
Maybe someone wants to go to Manali instead. How could a group of friends possibly reach a
P.PRABBU SANKAR AP/CSE 4 VEL TECH MULTI TECH
consensus? Moreover, how can numerous strangers achieve consensus in a network?
In order to avoid centralization and conflicts among members, the system requires a
consensus mechanism or algorithm.
A consensus algorithm is a way to keep network members synchronized under democracy. With
decentralization, each network member has equal power to make decisions in the system. Hence,
rules need to be established for network members (or nodes) to implement new changes to the
system with a global agreement.
In a blockchain, each participant shares the exact same copy of the network transactions, which
helps them stay synchronized and connected.
Generally, consensus protocols form at least 51% of participants in the network to agree on the
upcoming change. If they agree, the network system gets updated with the new change. Else, it
rejects the change by mutual agreement.
Let’s see what the renowned consensus algorithms do to reach a global network agreement?
P.PRABBU SANKAR AP/CSE 5 VEL TECH MULTI TECH
PoW is a popular consensus algorithm used by Bitcoin and Ethereum networks. Here, miners (or
block adders) have to do heavy mathematical computations to find a right hash by changing
the nonce of the block. The miner who finds the hash below the difficulty level gets the chance
to add his block to the network. Hence, takes the reward.
It’s a puzzle-friendly way to reach consensus by using high computational power. Afterward,
already present network participants valid transactions in the block added by the miner.
Blockchains using PoW algorithm: Bitcoin, Ethereum, Dogecoin, Litecoin, Zcash, Horizon,
and many more.
PoS consensus eliminates the high energy consumption by PoW. PoS uses a staking
mechanism in which miners (or validators) hold some of their earned coins in the network to
get selected for adding a block.
It’s not an initial consensus algorithm for a network. It can only be implemented after a network
gets a good amount of participants (or nodes).
Blockchains using PoS algorithm: Polkadot, EOSIO, Cardano, Ethereum 2.0, and many more.
DPoS improves the PoS mechanism by introducing voting for delegates. Here, network
participants vote for the trusted delegates (or miners) using their coins. Then, based on a
random selection, one voted delegate gets the chance to add its block.
P.PRABBU SANKAR AP/CSE 7 VEL TECH MULTI TECH
PoI uses importance scores to select the one block harvester out of all participants. It aims to
eliminate favors toward rich stakeholders in PoS consensus. The importance score depends on
your quality transactions and reputation in the network.
PoC uses the disk or storage capacity for mining a block in a decentralized network. It
exchanges the computation factor with disk space. The PoC motivates miners to collect a list of
all the possible nonce and block hashes before the actual mining.
At the time, the miner just uploads the calculated files of possible hashes to the network. PoC
reduces the time taken to add and validate the block of transactions.
Afterward, the block verification takes place by network validators, and a new block gets added.
Proof of Activity (PoA) combines PoW and PoS mechanisms. First, the miners must do the
heavy computation to add an empty block with header information and reward address.
Afterward, one empty block gets chosen based on the number of coins they hold in their
respective accounts. Then, the miner of that empty block gets the chance to add its transactions
to the block. Moreover, the transactions are verified by network validators.
PoB allows miners to add their block by sending some of their coins to an unspendable
account. This process of sending your earned coins to an escrow account is called burning the
coins.
P.PRABBU SANKAR AP/CSE 9 VEL TECH MULTI TECH
PoB eliminated the burnt coins permanently from regular transactions. Hence, they become
unspendable even by its owner.
The more coins a miner burns, the higher his chances of adding his new block of transactions to
the network. Burning coins brings virtual mining rights to the miner.
BFT aims to resolve Byzantine Generals’ decisional puzzle. It’s based on the communication
problem generals of different armies might have to decide to attack or retreat at the same time.
BFT mechanism regulates the communication between nodes using hashes, digital signatures,
and metadata. It embraces the synchronization among nodes of a decentralized network.
PROS CONS
Decentralised Ecosystem
Last year, Sir Tim Berners-Lee revealed his new vision, one where the internet becomes
decentralised again as he originally had envisioned it. His technology is called Solid POD. It will
allow every internet user to store their own data, be it video; articles; wearable tracking data or
comments, and share that with anyone or any website that has connected to the Solid ecosystem.
Using the Solid POD, the user will remain in full control over their data and who has access to it
and who not. A great new initiative that will hopefully bring us closer to a decentralised society
where data is owned by those who created it, privacy is protected, security is a given, and
distributed ledger technology will enable trustless transactions among individuals, organisations
and things.
However, distributed ledger technology, which includes blockchains, is still a very nascent
technology, and the complete ecosystem is still under development. To achieve a decentralised
society, many more components need to be built, requiring global standards and significant
investments. I estimate that it will take another 3–5 years before the ecosystem is ready for full-
P.PRABBU SANKAR AP/CSE 11 VEL TECH MULTI TECH
scale, enterprise adoption. Fortunately, many startups are working on various components of this
decentralised ecosystem.
1. Infrastructure layer
Those applications that aim to create an infrastructure layer on which others can develop
applications. Public blockchains include Ethereum, EOS, and Nxt, while private blockchains
include Ripple, Hyperledger, MultiChain, and Chain.
2. Consensus mechanisms
Required to ensure the state of the network and determining which node can validate transactions.
There are numerous consensus algorithms available, ranging from Proof of Work, Proof of Stake
and many others.
P.PRABBU SANKAR AP/CSE 12 VEL TECH MULTI TECH
3. Distributed computing
Using distributed ledger technology to distribute your computing requirements. Basically, cloud
computing but then decentralised. Examples include Golem and Sonem.
4. Distributed storage
Distributed data storage is especially important when you want to be sure that data can always be
accessed, regardless of restrictions some countries have. Examples include Storj, IFPD, and
FileCoin.
Services that are focused on developing a self-sovereign identity and ensuring that data of internet
users is kept private and personal. Examples include Sovrin, uPort, Civic, and Blockstack.
6. Money transactions
There are three different types of tokens: currency, utility, or security tokens. Currency tokens,
meaning cryptocurrencies, are used to make financial transactions, and the most well-known is, of
course, Bitcoin. Others include ZCash, Bitcoin Cash, or Monero.
7. Wallets
Of course, all those cryptocurrencies need to be kept somewhere. Wallets are the bank accounts of
the crypto world. You can have hot wallets (connected to the internet) or cold wallets
(disconnected from the internet). Examples include MyEtherWallet, Jaxx, Exodus, or Trezor.
8. Exchanges
Like with stocks in companies, tokens need to be exchanged, so there is a range of centralised and
decentralised exchanges. Centralised exchanges have the risk of being hacked, which is not
P.PRABBU SANKAR AP/CSE 13 VEL TECH MULTI TECH
possible with a decentralised exchange. Examples of centralised exchanges include Bitfi- nex,
Bitstamp, Coinbase, or Kraken. Examples of decentralised exchanges include 0x, bisq, bitshares,
or EtherDelta.
9. Industry applications
Every industry can use DLT to improve collaboration, enable provenance, speed up transaction
settlements, or enable transparency. Examples per industry include:
Decentralized Platforms
Blockstack.org
eos.io
tron.network
You can find more details on these platforms and related decentralized application
on https://www.dapp.com/
Blockstack
Blockstack is blockchain-based decentralized computing network and application ecosystem.
Following are the key highlights of Blockstack:
You can get started with application development with EOS at https://developers.eos.io/eosio-
home/docs
P.PRABBU SANKAR AP/CSE 15 VEL TECH MULTI TECH
TRON
TRON is a decentralized technology-based reliable smart contract platform. Following are the
key highlights of TRON: