Professional Documents
Culture Documents
Introduction to Cryptocurrency
Ledgers
Ledger
A pays B ₹100
C pays D ₹150
E pays A ₹50
B pays C ₹250
Protocol
A pays B ₹100 A
C pays D ₹150 C
E pays A ₹50 E
B pays C ₹250 B
Digital Signatures
Public key / Secret key
A B C
Digital Signatures
Sign(Message , sk) = Signature
Verify (Message, Signature , pk) = True/False
Ledger
____________________
____________________
____________________
____________________
____________________
____
\ 0001101011100……
Verify (Message, 256 bit signature , pk)
0000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000
LEDGER LEDGER
_____________
_____________ B E _____________
_____________
_____________ _____________
________ ________
00011100…… 00011100……
C D
LEDGER
LEDGER _____________
_____________ _____________
_____________ _____________
_____________ ________
________ 00011100……
00011100……
Cryptographic Hash Function
Fraud ↔ Computationally infeasible
Cryptographic Hash Function
• Input – any message/file
• Output – string of bits of fixed length (hash)
• 011000011110001101110100001111001000010111010011010011100000101011110100100
101010111100001010100011001000110101011101110110011111000100001100010110011
011101001101101010110011101111100011010010010101011111100101100010111101000
1110100010011000100110100011001
• SHA256(“IISERMohali”) =
• 011101010001000001100100010100010000010100011000000101011000101010001001011
000011000000000101110101010000111011000110100000101101011111010011001000111
010000000000011001001011111011000001011100111000011010110100000001110110001
0001000000001101100000011110011
Ledger Probability ~ 1 in a billion
Blocks
Previous Hash Previous Hash Previous Hash
“Block Chain”
Previous Hash Previous Hash Previous Hash
Block creator 1 gets 100 LD Block creator 2 gets 100 LD Block creator 3 gets 100 LD
“Block Chain”
Main Ideas
Digital Signatures
Decentralize
Proof of work
Block Chain