Blockchain
Blockchain
Blockchain
Subodh Sharma
Subhashis Banerjee
Amit Binny
₹ 100
Centralized Network
I Blockchain is a data-structure
that contains an ordered
sequence of transaction
records and other
meta-information
I Each participant in the
network can have a fully copy
of the blockchain
I The records are chained via
hash pointers
I All updates to Blockchain via
Distributed Network distributed consensus
I HashPtr:Simply a pointer to
where the information is
stored together with the hash
of the information.
I HashChain: List of HashPtrs.
ash pointer is a pointer to where data is stored together with a As long as the head ptr is
lue of that data at some fixed point in time.
stored securely (i.e. an
adversary can’t access it), we
will have a tamper-evident
build all kinds of data structures. Intuitively, we can take a familiar data
log.
such as a linked list or a binary search tree and implement it with hash
as
e we chain A block
normally
Block would.
chain is a linked list that is built ith hash pointers instead of pointers
e built a linked list using hash pointers. We re going to call this data
e case for a block chain is a am e e iden log That is e ant to build a log data structure that
reas
es asofindata
a bunch a regular
and allo slinked listdata
us to append where you
onto the end have a series
of the log of blocks,
But if somebod alters each
that is earlier in the log e re going to detect it
ointer to the previous block in the list, in a block chain the previous block
a hash pointer.
nderstand So achie
h a block chain eachesblock note only
this tamper tells usletwhere
ident propert s ask hatthe value
happens if an of the
ersar ants to tamper ith data that s in the middle of the chain Specificall the ad ersar s
oissvs,
contains
to suban:
do it in suchaa digest
Introduction ofthe
a that to that
someone value
Fundamentals
ho that
remembers allows
of onl
Blockchain uspointer
the hash to verify thatof the
at the head the value 7
Components in Blockchain: Merkle Trees
Fg e Me e ee In a Merkle tree data blocks are grouped in pairs and the hash of each of
I Hashptrs organised in a binary tree
these blocks is stored in a parent node The parent nodes are in turn grouped in pairs and their hashes
stored one level up the tree This continues all the wa up the tree until we reach the root node
I Property: provides concise proof of membership
As before we remember just the hash pointer at the head of the tree We now have the abilit
traverse down through the hash pointers to an point in the list This allows us make sure that the
data hasn t been tampered with because just like we saw with the block chain if an adversar
tampers with some data block at the bottom of the tree that will cause the hash pointer that s one
level up to not match and even if he continues to tamper with this block the change will eventuall
Introduction
svs, suban:propagate to the
to the topFundamentals of Blockchain
of the tree where he won t be able to tamper with the hash pointer that we ve 8
Components in Blockchain: Digitial Signatures
Simplified protocol
I New transaction are bcast to all the nodes; each node selects
and collects transactions into a block.
I In each round a random node (vsi proof-of-XYZ) is chosen who
gets to bcast its block.
I Other nodes decide on the block (accept: if all transactions in it
are valid)
I Implicit acceptance: node express acceptance by attaching the
block in their local copies of the chain and including the hash of
the accepted block in the next block they propose.