Blockchains: Architecture, Design and Use Cases
Blockchains: Architecture, Design and Use Cases
1
Image courtesy: http://beetfusion.com/
A HISTORICAL PERSPECTIVE
2
The Fundamentals
• Cryptographically Secured Hash Functions
– Hash Functions: Map any sized data to a fixed size; Example H(x) = x % n, where x
and n are integers and % is the modular (remainder after division by n) operations. x
can be of any arbitrary length, but H(x) is within the range [0,n-1].
– Cryptographically Secured:
• One way, given a x, we can compute H(x), but given a H(x), no deterministic algorithm can
compute x
• For two different x1 and x2, H(x1) and H(x2) should be different
Cryptographic Hash Functions
• Examples: MD5, SHA256
Source: Statistica
The Technology behind Bitcoin – The Blockchain
A = ₹100 A = ₹100
₹ 50
A -> B ₹50 A -> B ₹50
A = ₹100 A = ₹100
The network
The wallet nodes validate the
transactions The miners
constructs the
based on the include the
transactions, sign
existing transaction to the
using Alice’s private
Blockchain, and next block to be
key, and broadcasts
propagate the mined
it to the network
transaction to the
miners
The Bitcoin Transaction Life Cycle – The Miners
This movement of academia, industry, startups is termed Blockchain 2.0.
Indian
Indian Institute
Institute of
of Technology
Technology Kharagpur
Kharagpur
Blockchain 2.0 and Smart Contracts
• Blockchain is a powerful technology – capable of going much further than financial
transactions
• Szabo claimed that smart contracts can be realized with the help of a
public ledger
• If certain goals of the project are reached, then the code automatically
transfers the money from supporters to the production team
Crowdfunding Platform using Smart Contracts
• If the project goals (contracts) fail, then the code can transfer the money
back to the supporters
Smart Contracts – The Advantage
• Immutable: No party will be able to change the contract once it is fixed and
written to the public ledger (the Blockchain)
• Distributed: All the steps of the contract can be validated by every participating
party – no one can claim later that the contract was not validated
• Why Blockchain?
– The blocks are immutable
– The information is open – everyone can check and validate
Smart Contract Platforms
26