Professional Documents
Culture Documents
Ras Dwivedi
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 1 / 43
Outline
1 Recap
2 Hash Functions
3 Digital Signature
4 Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 2 / 43
Recap
Outline
1 Recap
2 Hash Functions
3 Digital Signature
4 Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 3 / 43
Recap
RSA
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ −→ e × d = 1 mod φ
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ −→ e × d = 1 mod φ
d
Idea: me×d = me = m modulo n
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ −→ e × d = 1 mod φ
d
Idea: me×d = me = m modulo n
encryption: c = me mod n
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ −→ e × d = 1 mod φ
d
Idea: me×d = me = m modulo n
encryption: c = me mod n
decryption: p = c d mod n
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
RSA
proposed by Rivest,Shamir,Adleman
choose two large distinct prime number p, q
calculate n = pq
calculate φ = lcm(p − 1, q − 1)
choose e such that gcd(e, φ) = 1
calculate d such that d = e −1 modφ −→ e × d = 1 mod φ
d
Idea: me×d = me = m modulo n
encryption: c = me mod n
decryption: p = c d mod n
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 4 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 5 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
given document m, s = md could not be guessed.
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
given document m, s = md could not be guessed.
Problem: forging given m1 , m2 as two document, and s1 , s2 as their
digital signature, one can find the valid signature of m1 .m2 as s1 .s2
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
given document m, s = md could not be guessed.
Problem: forging given m1 , m2 as two document, and s1 , s2 as their
digital signature, one can find the valid signature of m1 .m2 as s1 .s2
Also the length of the signature is proportional to the size of the
document
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
given document m, s = md could not be guessed.
Problem: forging given m1 , m2 as two document, and s1 , s2 as their
digital signature, one can find the valid signature of m1 .m2 as s1 .s2
Also the length of the signature is proportional to the size of the
document
slow
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
No!
given (n, e) private key of Alice cannot be calculated
given document m, s = md could not be guessed.
Problem: forging given m1 , m2 as two document, and s1 , s2 as their
digital signature, one can find the valid signature of m1 .m2 as s1 .s2
Also the length of the signature is proportional to the size of the
document
slow
What could we do now?
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 6 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 7 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 7 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 7 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 8 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 8 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 8 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 8 / 43
Recap
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 8 / 43
Hash Functions
Outline
1 Recap
2 Hash Functions
3 Digital Signature
4 Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 9 / 43
Hash Functions
Hash Function:
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Hash Functions
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Hash Functions
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Hash Functions
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Hash Functions
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Hash Functions
Document integrity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 11 / 43
Digital Signature
Outline
1 Recap
2 Hash Functions
3 Digital Signature
4 Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 12 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 13 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 14 / 43
Digital Signature
Summary
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 15 / 43
Digital Signature
Summary
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 15 / 43
Digital Signature
Summary
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 15 / 43
Digital Signature
Summary
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 15 / 43
Digital Signature
Summary
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 15 / 43
Cryptocurrency
Outline
1 Recap
2 Hash Functions
3 Digital Signature
4 Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 16 / 43
Cryptocurrency
Trade
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 17 / 43
Cryptocurrency
Medium of Exchange
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 18 / 43
Cryptocurrency
Medium of Exchange
Gold
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 18 / 43
Cryptocurrency
Meet of Demand
Figure: Coins
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 19 / 43
Cryptocurrency
Meet of Demand
Figure: Coins
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 19 / 43
Cryptocurrency
Meet of Demand
Figure: Coins
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 20 / 43
Cryptocurrency
Backed by RBI
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 21 / 43
Cryptocurrency
Backed by RBI
RBI controls the flow
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 21 / 43
Cryptocurrency
Backed by RBI
RBI controls the flow
strong regulation against counterfeiting
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 21 / 43
Cryptocurrency
Backed by RBI
RBI controls the flow
strong regulation against counterfeiting
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 21 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 22 / 43
Cryptocurrency
Digital currency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
Digital currency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 23 / 43
Cryptocurrency
2008 Recession
Figure: Caption
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 24 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 25 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 25 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 25 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 26 / 43
Cryptocurrency
Problem solved?
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 27 / 43
Cryptocurrency
Problem solved?
No!
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 27 / 43
Cryptocurrency
Problem solved?
No!
It just exploded.
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 27 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Problem 1: Identity
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 28 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 29 / 43
Cryptocurrency
Problem 2: Authorization
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 30 / 43
Cryptocurrency
Problem 2: Authorization
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 30 / 43
Cryptocurrency
Problem 2: Authorization
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 30 / 43
Cryptocurrency
Problem 2: Authorization
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 30 / 43
Cryptocurrency
Problem 2: Authorization
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 30 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 31 / 43
Cryptocurrency
Solution 1
allow any node to write it
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 1
allow any node to write it
Problem:
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 1
allow any node to write it
Problem: how do you know that node is trustworthy?
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 1
allow any node to write it
Problem: how do you know that node is trustworthy?
Solution:
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 1
allow any node to write it
Problem: how do you know that node is trustworthy?
Solution: verify it by majority
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 1
allow any node to write it
Problem: how do you know that node is trustworthy?
Solution: verify it by majority
cost for not trusting central bank
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 32 / 43
Cryptocurrency
Solution 2
allow any node to write it
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:Sybil Attack
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:Sybil Attack
Sybil attack: Where one node have more than one identities
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:Sybil Attack
Sybil attack: Where one node have more than one identities
Solution:
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:Sybil Attack
Sybil attack: Where one node have more than one identities
Solution: Ask them to show proof of some limited resources
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Solution 2
allow any node to write it and verify it by majority
Problem:Sybil Attack
Sybil attack: Where one node have more than one identities
Solution: Ask them to show proof of some limited resources
What are the resources available?
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 33 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 34 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 35 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 35 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 35 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 35 / 43
Cryptocurrency
Proof of Work
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 35 / 43
Cryptocurrency
An Ideal Hash function f (x ) : {0, 1}m → {0, 1}n is one which has
following properties
given f (x ) it is impossible to guess x
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 36 / 43
Cryptocurrency
An Ideal Hash function f (x ) : {0, 1}m → {0, 1}n is one which has
following properties
given f (x ) it is impossible to guess x
given x1 its is impossible to find x2 such that f (x1 ) = f (x2 )
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 36 / 43
Cryptocurrency
An Ideal Hash function f (x ) : {0, 1}m → {0, 1}n is one which has
following properties
given f (x ) it is impossible to guess x
given x1 its is impossible to find x2 such that f (x1 ) = f (x2 )
it is impossible to find x1 , x2 , such that x1 6= x2 and f (x1 ) = f (x2 )
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 36 / 43
Cryptocurrency
An Ideal Hash function f (x ) : {0, 1}m → {0, 1}n is one which has
following properties
given f (x ) it is impossible to guess x
given x1 its is impossible to find x2 such that f (x1 ) = f (x2 )
it is impossible to find x1 , x2 , such that x1 6= x2 and f (x1 ) = f (x2 )
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 36 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 37 / 43
Cryptocurrency
Merkel tree
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 39 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 39 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 39 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 40 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 40 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 40 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 40 / 43
Cryptocurrency
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 40 / 43
Cryptocurrency
Double spending
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 42 / 43
Cryptocurrency
Double spending
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 42 / 43
Cryptocurrency
Double spending
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 42 / 43
Cryptocurrency
Double spending
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 42 / 43
Cryptocurrency
A Chain of blocks
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 43 / 43
Cryptocurrency
A Chain of blocks
Ras Dwivedi (Indian Institute of Technology Kanpur) Introduction to Blockchain May 22, 2018 43 / 43
Cryptocurrency
A Chain of blocks
A Chain of blocks