RGPV Is501 Unit1
RGPV Is501 Unit1
In 2012 the paper “Improving the Efficiency and Reliability of Digital Time-
Stamping” by Dave Bayer, Haber and Stornetta incorporated a cryptographic hash
tree known as Merkle Tree into design to improve efficiency and security.
A Merkle tree is recursively defined as a binary tree of hash lists where the parent
node is the hash of its children, and the leaf nodes are hashes of the original data
blocks.
A hash is the result of the cryptographic formula that has taken some form of data
encrypted it and returned the result as single string of characters.
Once data is stored within a block it becomes extremely difficult to change it.
Unit 1 1
A block is comprised of three things: Data, a hash and the hash of the previous
block.The data in a blockchain all depends on what type of blockchain there is.
Data in block
So lets assume we have the Bitcoin Blockchain. The data that is stored in there will
be the sender, the receiver and the amount.
Unit 1 2
The previous block hash
The block also contains the hash of the previous block and it is this which created
the chain. It is also this which is integral to the security of the blockchain.
Suppose there is a transaction between Susan Bloggs and Chris Bloggs of BTC
3.456 which creates a new block on the chain with the data of the transaction, the
hash of that data and the hash from the initial block.
Unit 1 3
So the data we are encrypting is Sender: Susan Boggs , Receiver: Chriss Bloggs and
Amount: 3.456 BTC
Using our hashing function we get the hash: b4de b27c 02e8 bdbe 6beb 48c5 a943 d189 .
We then add this hash to our block. In order to add a new block to our blockchain
we check that the new blocks previous hash matches the previous block. In our
example it is: b4de b27c 02e8 bdbe 6beb 48c5 a943 d189 It is exactly the same and thus
we know that nothing has been tampered
with. This confirmation process verifies that all hashes are consistent back to the
Genesis block.
Blockchain storage solutions, like Filecoin and Storj.io, provide full control over
data and ensure only authorized access. Blockchain technology can also be used
for voting, eliminating fraud and boosting turnout. This technology can help
maintain transparency, minimize costs, and streamline the voting process.
Unit 1 4
Distributed ledgers are the databases shared across a network and spread over
various geographical locations. A ledger is a collection of financial accounts and,
in such a case, distributed means spread out and controlled globally. Thus,
distributed ledgers are held and re-organized by multiple parties in different
locations and institutions.
Unit 1 5
Based on the transaction, voting is carried out on the changes completed on the
database. All nodes participate in the voting, and if at least 51% of them agree, the
new transaction is accepted on the database.
Afterward, the nodes update the versions of the database so that all the devices
or nodes will be of the same version. The new transaction is written onto a block
on the blockchain.
Miners dedicating more computational power to find the hash will be more
successful. However, as blocks keep generating, it becomes more difficult to find
subsequent hash scales. The goal is to keep a constant speed of generating the
blocks.
3. Inherently Decentralized:
Unit 1 6
Database is globally spread, making it difficult to attack
4. Highly Transparent:
The traditional architecture of the World Wide Web uses a client-server network.
In this case, the server keeps all the required information in one place so that it is
Unit 1 7
easy to update, due to the server being a centralized database controlled by a
number of administrators with permissions.
Unit 1 8
Public blockchain architecture
A public blockchain architecture means that the data and access to the system is
available to anyone who is willing to participate (e.g. Bitcoin, Ethereum, and
Litecoin blockchain systems are public).
Consortium
Property Public blockchain Private blockchain
blockchain
Almost impossible to
Immutability level Could be tampered Could be tampered
tamper
Efficiency (use of
Low High High
resources)
Unit 1 9
Transaction - smallest building block of a blockchain system (records,
information, etc.) that serves as the purpose of blockchain
Miners - specific nodes which perform the block verification process before
adding anything to the blockchain structure
Any new record or transaction within the blockchain implies the building of a new
block. Each record is then proven and digitally signed to ensure its genuineness.
Before this block is added to the network, it should be verified by the majority of
nodes in the system.
Following is a blockchain architecture diagram that shows how this actually works
in the form of a digital wallet.
Unit 1 10
Benefits of Blockchain Architecture
Blockchain architecture can serve the following purposes for organizations and
enterprises:
Data validity & security - once entered, the data is hard to tamper with due to
the blockchain’s nature. It takes time to proceed with record validation, since
the process occurs in each independent network rather than via compound
processing power. This means that the system sacrifices performance speed,
but instead guarantees high data security and validity.
Unit 1 11
Primarily, blockchain is composed of five layers: the hardware infrastructure layer,
the data layer, the network layer, the consensus layer, and the application layer.
Every layer has a distinct function. Together, these layers make the blockchain a
comprehensive solution for everything from back-end data administration to front-
end application development.
Data layer: Following the hardware layer is the data layer, where transaction
details are stored. The transaction information recorded on a block (the basic unit
of a blockchain) includes information about the sent crypto, the public key of the
recipient, and the private key of the sender. Each data-containing block is
connected to the block that came before it and the block that will be generated
next. Only the first block of the network, the genesis block, is connected forwards
and not backwards.
Unit 1 12
Network layer: This layer handles the communication between blockchain nodes.
It connects nodes, propagates transactions, and distributes data throughout the
network. Since blockchain is an open system, each node must be aware of the
transactions being validated by other nodes. The network layer facilitates this
communication.
Consensus layer: This layer guarantees that all nodes in the network concur on
the validity of each transaction. It uses a consensus mechanism, such as Proof of
Work (PoW) or Proof of Stake (PoS), to validate and add transactions to the
blockchain.
Application layer: The Application layer in the blockchain is the one on which
apps are built. This layer includes smart contracts, decentralized applications
(dApps), and other software that run on top of the blockchain network. It allows
developers to create new applications and services that leverage the security and
transparency of the blockchain.
Unit 1 13
like preventing double-spending and ensuring that all valid transactions have an
opportunity to be included in the blockchain.
In blockchain systems like Bitcoin, Proof-of-Work (PoW) is used to achieve
consensus, providing a level playing field for participants to contribute to block
creation. Other systems, like Ethereum, are moving toward Proof-of-Stake (PoS) to
address scalability concerns while still aiming for fairness.
Types of Blockchain
There are many different types of consensus mechanisms
Used by Bitcoin and many other public blockchains, Proof of Work (PoW) was the
very first consensus mechanism created. It is generally regarded as the most
reliable and secure of all the consensus mechanisms, though concerns over
scalability are rife
Unit 1 14
As it requires large amounts of computational resources and energy in order to
generate new blocks, the operating costs behind PoW are notoriously high. This
acts as a barrier of entry for new miners, leading to concerns about centralisation
and scalability limitations.
Unit 1 15
Unlike in PoW, where miners are incentivised by block rewards (newly generated
coins), those who contribute to the PoS system simply earn a transaction fee.
PoS is seen as a more sustainable and environmentally friendly alternative to PoW,
and one that’s more secure against 51% attacks. However, as the system favours
entities with a higher number of tokens, PoS has drawn criticism for its potential to
lead to centralisation.
A hybrid consensus starts with having PoW miners to create new blocks
containing transactions to be added to the blockchain. Once these blocks are
created, PoS miners decide whether to confirm them or not. PoS miners purchase
votes by staking a portion of their tokens. However, instead of examining the total
vote count, the hybrid PoW/PoS mechanism randomly chooses 5 ‘votes’ to
determine the efficacy of the newly created block; if 3 of the 5 chosen votes are
affirmative, the block is added to the blockchain.
In exchange for these services, PoW miners receive 60% of the block reward, PoS
miners receive 30%, and the remaining 10% is dedicated to developmental efforts.
Unit 1 16
1.6 Types of Blockchain
There are majorly four types of Blockchain -
Public Blockchain
These blockchains are completely open to following the idea of decentralization.
They don’t have any restrictions, anyone having a computer and internet can
participate in the network. All the computer in the network hold the copy of other
nodes or block present in the network. In this public blockchain, we can also
perform verification of transactions or records
Advantage:
Disadvantage
Processing: The rate of the transaction process is very slow, due to its large
size. Verification of each node is a very time-consuming process.
Private Blockchain
These blockchains are not as decentralized as the public blockchain only selected
nodes can participate in the process, making it more secure than the others.
These blockchains are operated in a closed network.
Advantage:
Unit 1 17
Speed: The rate of the transaction is high, due to its small size. Verification of
each node is less time-consuming.
Scalability: We can modify the scalability. The size of the network can be
decided manually.
Privacy: It has increased the level of privacy for confidentiality reasons as the
businesses required.
Disadvantage:
Count- Since there are few nodes if nodes go offline the entire system of
blockchain can be endangered.
Hybrid Blockchain
It is the mixed content of the private and public blockchain, where some part is
controlled by some organization and other makes are made visible as a public
blockchain. User access information via smart contracts. Even a primary entity
owns a hybrid blockchain it cannot alter the transaction
Advantage:
Operations: It can choose the participants in the blockchain and decide which
transaction can be made public.
Disadvantage:
Unit 1 18
Efficiency: Not everyone is in the position to implement a hybrid Blockchain.
The organization also faces some difficulty in terms of efficiency in
maintenance.
Consortium Blockchain
In the same way that a hybrid blockchain has both private and public blockchain
features, a Consortium blockchain, also known as a federated blockchain, does.
However, it differs because it involves various organizational members working
together on a decentralized network. Predetermined nodes control the consensus
methods in a consortium blockchain. It has a validator node responsible for
initiating, receiving, and validating transactions. Transactions can be initiated or
received by member nodes.
Advantages
Disadvantages
Unit 1 19