SenGupta_Slides
SenGupta_Slides
101011101011001…0010110100101 x h y 101110101001000110111100010101
HASH FUNCTIONS
101011101011001…0010110100101 ? h y 101110101001000110111100010101
HASH FUNCTIONS
101011101011001…0010110100101 x1
h y 101110101001000110111100010101
1100101001011001…110010100110 x2
HASH FUNCTIONS
101011101011001…0010110100101 x1
h y 101110101001000110111100010101
1100101001011001…110010100110 x2
101011101011001…0010110100101 x1 y1 101110101001000110111100010101
h
101010101011001…0010110100101 x2 y2 110010100101100100110010100110
CONSTRUCTIONS
m1 m2 mn
IV f f f h
Merkle-Damgard Construction
Example : SHA 256 — used in Bitcoin
CONSTRUCTIONS
m1 m2 mn h1
f f f f
c
Sponge Construction
Example : SHA 3 — used in Ethereum
APPLICATION
x h y
record(x) : verify(c,x) :
c = h(x) h(x) == c
addr(data)
data
h hash(data)
Hash Pointer
data data
HP(block) h HP(block)
timestamp timestamp
Block Block
sk
sk
? sk
verify(pk,m,sign(sk,m))
35624 35624
35624
35624 35624
?!
Semi-Decentralised Publicly-Verifiable
Tamper-Resistant Eventually-Consistent
NOT BITCOIN
Economic Transaction
that we are familiar with
Tx
NOT BITCOIN
Tx
Tx
Tx Tx Tx Tx Tx Tx Tx
Tx
Tx Tx
Signed by
pk
Tx Tx pk
Signed by sk
pk1 pk
Tx R1
Recipient(s)
Sender(s)
pk2 pk
Tx Tx R2
sk1 sk2 sk3
pk3 pk
Tx R3
pk1
Tx Tx
Input Transactions
pk2 pk pk pk
Tx R1 R2 R3 Recipients
pk3
Input(s)
Output(s)
Tx Tx Tx Tx Tx Tx Tx Tx
Tx Tx Tx Tx Tx Tx Tx Tx Tx Tx Tx Tx
Tx
Tx
Transaction
Mining
MINING
Tx Tx
Tx
Tx
Transaction
Computational
Lottery (Puzzle)
Tx
Tx
Transaction
Mining
BITCOIN
Framework — Decentralised peer-to-peer collaborative network
Goal : All peers should agree on a sequence of transactions
BITCOIN
Publicly-Verifiable
as the complete ledger and the hash function is public
BITCOIN
Tamper-Evident / Tamper-Resistant
as the ledger is connected through a chain of hash pointers
X X X
X X X
X
BITCOIN
Eventually-Consistent
as the longest chain eventually sustains as the main chain
BITCOIN
Semi-Decentralised
as the mining is dominated by computational power
BITCOIN
Semi-Decentralised Publicly-Verifiable
Tamper-Resistant Eventually-Consistent
BEYOND BITCOIN
Exploiting the power of Blockchain Ecosystem
MINING
Proof-of-Work Proof-of-Space
Computation-hard challenge Memory-hard challenge
PermaCoin, SpaceMint
Proof-of-Stake Proof-of-Importance
Depends on holdings Depends on involvement
OmiseGo, EOS
NETWORK
De-Centralized Semi-Centralized
Without any Authority With Trusted Authority