Seminar Report
Seminar Report
BLOCKCHAIN
Submitted by
Academy of Technology
Adeconagar, Hooghly – 712121
2019
Page | i
ACKNOWLEDGEMENT
Last but not the least I want to thank all of my friends who helped me directly or
indirectly in this successful completion of the work.
.
Shashi Prakash Shah
CSE dept, 3rd year
16900116046
Page | ii
ABSTRACT
This seminar report is centered on Blockchain, its architecture and its use cases. Blockchain
is a distributed database of records or public ledger of all transactions or events that have
been executed and shared among participating parties, where each transaction in the public
ledger is verified by consensus of a majority of the participants in the system.
Blockchain is considered to be both alluring and critical for ensuring enhanced security and
(in some implementations, non-traceable) privacy for diverse applications in many other
domains. The immutable nature of Blockchain makes it suitable for many industries. Today
apart from acting as backbone for cryptocurrencies, it is being implemented in different
industries to bring out more security, traceability, transparency, automation, efficiency and
provenance
Structurally, Blockchain is a group of records which are stored in a block, and each block is
connected to its previous block cryptography (Hashing). Every block in a blockchain stores
information like timestamps, its hash value, hash of previous block, block number, along with
a set of records (transactions).
The nature of blockchain helped it makes its way into financial sectors as well as not
financial sectors. In this report I have discussed about the architecture and design aspects of
Blockchain and its use cases in the different fields like supply Chain.
Page | iii
TABLE OF CONTENTS
ABSTRACT iii
LIST OF TABLE v
LIST OF FIGURES vi
1. INTRODUCTION TO BLOCKCHAIN 1-5
1.1 Introduction 1
1.2 Definition 2
1.3 Structure 3
1.3.1 Block Header 4
1.3.2 Transaction 4
2. BLOCKCHAIN 2.0 6-9
2.1 Introduction 6
2.2 Domain of Blockchain 2.0 6
2.3 Difference Between v1.0 and v2.0 7
2.4 Actors 7
2.5 Components 8
2.6 Smart Contracts 8
2.6.1 Introduction 8
2.6.2 Characteristics 8
3. USE CASES 10
REFERENCES 11
Page | iv
LIST OF FIGURES
2. Structure of Block 3
3. Transactions in Blockchain 5
4. Merkle tree 5
LIST OF TABLES
Page | v
CHAPTER 1: INTRODUCTION TO BLOCKCHAIN
1.1. INTRODUCTION
This is where the blockchain technology comes handy. It has the potential to
revolutionize the digital world by enabling a distributed consensus where each and
every online transaction, past and present, involving digital assets can be verified
at any time in the future. It does this without compromising the privacy of the
digital assets and parties involved. The distributed consensus and anonymity are
two important characteristics of blockchain technology.
Page | 1
1.2. DEFINITION
There have been rapid developments within blockchain and this is still ongoing.
There are already many different types of blockchain that surfaced, each slightly
different from one another in many different respects carrying their own way to
define blockchain. Since the cryptocurrencies are the first real application of the
blockchain technology, it is often referred as Blockchain 1.0 or which provides
definition for blockchain as follows:
• Permissionless Blockchain
• Permissioned Blockchain
Page | 2
number of preselected participants will need to operate. However, because of the
smaller number of participants, it is much easier for a group of users to collaborate
and alter the rules, or revert transactions and that is why only trusted parties
should be given a permission to act as verifiers. Examples of permissioned
blockchains include Eris, Hyperledger, and Ripple.
1.3. STRUCTURE
A blockchain is a growing list of records, called blocks, which are linked using
cryptography (Hashing). Since bitcoin is the real application of blockchain 1.0.
We will see the structure of Bitcoin Blockchain.
Bitcoin Blockchain is a linked- list like data structure consisting of blocks which
are linked using the hash of block before it (except genesis block). The “Genesis
block“,first block in any blockchain is a special block, as it does not have any
block before it. It is created during the creation of blockchain.
The each block of a blockchain contains, among other things, a record of some or
all recent transactions, and a reference to the block that came immediately before
it. It also contains an answer to a difficult-to-solve mathematical puzzle - the
answer to which is unique to each block.
Table 1: Data Structure of a Block
Block Header
List of Transactions
1.3.1. Block Header: Block Header of each block is a data structure, and
includes a version field, the hash of the previous block, the root hash
of the merkle tree of all transactions in the block, the current time,
and the difficulty. Bitcoin stores the nonce in the extraNonce field
which is part of the coinbase transaction, which is stored as the left
most leaf node in the merkle tree (the coinbase is the special first
transaction in the block). The counter parameter is small at 32-bits so
each time it wraps the extraNonce field must be incremented (or
otherwise changed) to avoid repeating work.
Page | 4
Table 2: Structure of Block Header
Page | 5
Figure 3: Transaction in Blockchain.
The Consensus
2.1. INTRODUCTION
After the rise of the Bitcoin protocol people started to think about the blockchain
application domains other than cryptocurrency. The nature of the blockchain
network has the potential to enable the development of a wide range of different
applications that are decentralized and in permissioned environment. This new
concept of permissioned blockchain in the field of Business, industries, banking
sector, medical institutions is regarded as Blockchain 2.0.
Blocking 2.0 is sought in the field where users base range from few hundred to
thousands and know each other beforehand, but cannot trust each other. This trust
issue can be solved with the consensus protocols like PAXOS, RAFT , Byzantine
Fault Tolerance and practical Byzantine Fault Tolerance.
Despite the fact that the use of the blockchain as a ledger for decentralized
applications offers a seemingly unlimited amount of potential, many concerns
regarding the use of the blockchain exist. Blockchain shows potential to be used in
many different fields and some of them are:
Page | 7
•Domain registration (Namecoin)
•Voting
•Crowdfunding
Blockchain 2.0 deals with permissioned environment where user need to verify
their identity using a Membership service provider. The points which separates the
permissioned blockchain from permission-less blockchain (Blockchain 1.0) are
summarized in table below:
2.3. ACTORS:
In blockchain architecture (as per Hyperledger fabric), there are number of actors
who creates, manages the blockchain. The actors in the blockchain are:
Page | 8
User: The business user, operating In a business network. This role
interacts with the Blockchain using an application. They are not aware of
the blockchain.
Regulator: The overall authority in a business network. Specifically,
regulators may require broad access to the ledger’s content.
Developer: The developer of applications and smart contracts that interact
with the blockchain and are used by blockchain Users.
Operator: Manages and monitor the Blockchain network. Each business
in the network has a Blockchain Network operator.
Membership Service: Manages the different types of certificates required
to run a permissioned blockchain.
Traditional Processing Platform: An existing computer system which
may be used by the Blockchain to augment processing.
Traditional data sources: An existing data system which may provide
data to influence the behavior of smart contracts.
2.4. COMPONENTS:
Page | 9
2.5. SMART CONTRACTS:
2.5.1. Introduction
Smart contracts were first proposed by Nick Szabo, who coined the term. With the
present implementations, based on blockchain "smart contract" is mostly used
more specifically in the sense of general purpose computation that takes place on
a blockchain or distributed ledger. In this interpretation, A smart contract is
a computer code running on top of a blockchain containing a set of rules under
which the parties to that smart contract agree to interact with each other. If and
when the pre-defined rules are met, the agreement is automatically enforced. The
smart contract code facilitates, verifies, and enforces the negotiation or
performance of an agreement or transaction. It is the simplest form of
decentralized automation.
It is a mechanism involving digital assets and two or more parties, where some or
all of the parties deposit assets into the smart contract and the assets automatically
get redistributed among those parties according to a formula based on certain data,
which is not known at the time of contract initiation.
Smart contracts are capable of tracking performance in real time and can bring
tremendous cost savings.
Self-verifying
Self-executing
Tamper resistant
Page | 10
Smart Contracts can
Fast Settlement
The fact that smart contracts are automated by computer code and connected to a
global blockchain means digital tasks can be performed much faster and more
frequently. For example, if a smart contract is used to pay a contractor for work,
the payment could be executed almost immediately once the work is complete.
High Accuracy
Provided that smart contracts are written properly, actions performed using them
will be very accurate because they adhere strictly to a computer code, which
almost entirely eliminates the possibility of mistakes.
Less Risk
Using a blockchain to execute smart contracts makes them more secure than
regular contracts that require centralized counterparties. In addition, they would be
virtually unhackable, immutable and not prone to manipulation.
Trustless
Page | 11
Lower Costs
Since smart contracts do not rely on third party intermediaries, the associated
costs are reduced or even removed. Legal costs, especially related to dispute
resolution, frequently impact on traditional contracts but these can be significantly
reduced if different scenarios or contingencies are written into smart contracts as
code.
Also, as repetitive tasks could be automated, this means that the main costs
associated with using smart contracts for this purpose would just be the actual
creation of the contracts themselves
Page | 12
CHAPTER 3: USE CASES
In many ways, Blockchain today is comparable to where the Internet was in early
1990s, While we have witnessed how the Internet has changed our societies over
the past two decades, we are now entering a phase where Blockchain is likely to
do the same by ushering in new paradigm comprising ‘Internet of Trust’ and ‘
Internet of Value’.
Food Safety
We know surprisingly little about most of the products we use every day. Even
before reaching the end consumer, goods travel through an often vast network of
retailers, distributors, transporters, storage facilities, and suppliers that participate
Page | 13
in design, production, delivery, and sales, yet in almost every case these journeys
remain an unseen dimension of our possessions.
Recording the journey of food items on Blockchain will enable us to verify the
chain of custody of a product, proving when and where it was handled by the
network of intermediaries and when it entered and left their facilities, with
corresponding benefits for transparency and efficiency.
Page | 14
REFERENCES
Page | 15