SlideShare a Scribd company logo
Blockchains
Sanjeev Mishra
Jan 22, 2018
Blockchain
• Blockchain is not Bitcoin
• It’s a technology
– the foundation of Bitcoin and other cryptocurrencies
– that enables transferring an asset from one party to another in a secure
manner
– is akin to an distributed and open ledger
• provides a permanent and complete record of every transaction that has taken
place.
• needs no central gatekeeper that controls how transactions are recorded,
allows anyone on the network can verify and record the transactions
3/19/2018
Use case: Transferring Money
• Traditional way
3/19/2018
3rd
Party
• Blockchain way
• Alice sends money to 3rd party
• 3rd party
• verifies Alice has enough funds
• verifies identity of Bob
• transfers the money to Bob
• charge commission
• Bob receives the funds
• The transfer time depends on the
system
• No 3rd party
• Alice sends money directly to Bob
• Cheaper than transferring using
traditional route
• Funds are immediately available to Bob
Ledger
3/19/2018
• A general ledger (using double-entry bookkeeping method)
– maintains a list of financial transactions
– each financial transaction affects at least two general ledger accounts
– and each entry has a debit and a credit transaction
– transactions are posted in two columns, with debit postings on the left and
credit entries on the right
Use Case: Transferring Money
Concept of Open Ledger
3/19/2018
Tx $10
Tx $5
• Anyone on the network can
see the transactions and verify
• If Alice tries to transfer $10
again to Charlie (double
spending) it can be verified
that Alice does not have
enough funds and so the
transaction does not get
recorded.
Tx $10
X
Pillars of Blockchain
3/19/2018
Append-only
distributed system of
record shared across
business network
Distributed
Ledger
Ensuring appropriate
visibility; transactions are
secure, authenticated
& verifiable
Transactional
Integrity
Computational logic
executed as part of
transactions
Smart
Contract
All parties agree
to network verified
transaction
Consensus
Distributed Ledger
• A blockchain is continuously growing chain of blocks
• Blocks are linked using cryptographic hashes
• Each block contains
– A hash pointer to previous block
– A nonce (proof of work)
– A list of transactions
• Any node on the network can have a copy of the ledger – these
special nodes are called miners
• It’s analogous to a distributed ledger controlled by no single party
3/19/2018
Use Case: Transferring Money
Blockchain way: Alice transferring $5 to Bob
• Alice publishes the transaction Tx A -> B $5 on the network
• All miners receive the notification
• They compete among themselves to validate
– Verify that A has enough funds
– Find a special key that enables this new transaction to existing transactions –
this is done using proof of work
• The first miner (M1) that accomplishes this updates the ledger and
publishes this on the network (along with the proof of work)
• M1 receives a reward for the work
• Other miners can verify the work and sync their ledger (consensus)
3/19/2018
Challenges of Distributed Ledger
• Transactional Integrity
– Ability to detect tempering
• Consensus among the replicas
– Updates to the ledger must must be agreed by all parties
3/19/2018
Transactional Integrity
Transactions are stored as Merkle Tree
• Merkle tree is a binary tree in which
– Every leaf node is labeled with hash of data node
– Every non-leaf node is labeled with cryptographic hash of labels of its child
nodes
3/19/2018
BlockchainMerkle Tree
Transactional Integrity
Malicious user tries to inserting fraudulent transaction
• Merkle tree comes to rescue
• Merkle tree is a binary tree in which
– Every leaf node is labeled with hash of data node
– Every non-leaf node is labeled with cryptographic hash of labels of its child
nodes
3/19/2018
Transacti
on-A
Transacti
on-B
Consensus: Proof of Work
Validation of Transactions
• Based on the
– Hal Finney’s Reusable Proofs or Work
– Adam Back’s computationally difficult Hashcash puzzles
• It is breakthrough simultaneously solving two problems.
1. It provided a simple and moderately effective consensus algorithm,
allowing nodes in the network to collectively agree on a set of canonical
updates to the state of the ledger.
2. It provided a mechanism for allowing free entry into the consensus process,
solving the political problem of deciding who gets to influence the
consensus, while simultaneously preventing sybil attacks.
3/19/2018
Byzantine Generals’ Problem
• 5 Generals - each with 100 men - to attack a castle having 300 men
inside.
• 500 can easily overpower 300 if they attach simultaneously
• There is a traitor among Generals - can sabotage the attack given a
chance by not attacking at the same time as others are attacking
300 outside men may not be enough to overcome 300 inside men
• Any General can start the attack by sending a note through a rider
to others. Rider is not allowed to see the note details
3/19/2018
Byzantine Generals’ Problem
Before Proof of Work
3/19/2018
Byzantine Generals’ Problem
After Proof of Work
3/19/2018
9
9
Finish 30 minutes
of work in 10 minutes, or
accept the time of attack,
spend 10 minutes on new
message and forward
Proof of Work based on Hashcash
Puzzles
• Uses partial hash inversion to prove that work was done
• Creation
1. Prepare the header, e.g: X-Hashcash: 1:20:1303030600:uid::McMybZIhxKXu57jd:ckvi
2. Increment the counter (initialized to a random number) and append to the
header
3. Compute 160-bit SHA-1 hash of the above header
• if the first 20 bits of the hash are not zeros go to 2
• (Chance of getting 20 zeros in randomly selected header is 1 in 220)
4. Use the header
• Verification
– Compute SHA-1 hash of the header and if first 20 bits are not zero reject it.
Note:
Bitcoin POW: double-SHA256 hash of every block, treated as a 256-bit
number, must be less than a dynamically adjusted target, which as of the this
time is approximately 2187 (an average of ~269 tries before a valid block is
found)
3/19/2018
Smart Contract
• A computation logic executed when a transaction is performed
• Its similar to a database trigger (stored procedure that is
automatically executed in response to certain events)
• The inputs, outputs, and status affected by smart execution are
agreed on by every node.
3/19/2018
Blockchain: State Machine
• State A -> Transactions -> State B
• State: collection of all assets ("unspent transaction outputs" or
UTXO) with each UTXO having a denomination and an owner
(defined by a 20-byte address a cryptographic public key[1]).
• Transaction: contains inputs, each referencing to an existing UTXO
and a signature (using owners private key), and one or more
outputs, each containing a new UTXO to be added to the state
3/19/2018
Blockchain: Myth and Reality
3/19/2018
Flavors of Blockchains
• Public Blockchains
– Fully public and uncontrolled network and state machine secured by proof of
work: Bitcoin network, Ethereum
– Anyone in the world can participate in the consensus process (Miners)
• Fully Private Blockchains
– Write permissions is centralized to one organization
– Public read permissions can be use case based
• Consortium Blockchains (Hybrid of public and fully private)
– Partially decentralized: Public read access to the ledger and which part of
ledger to be read enabled is controlled
– The consensus process is controlled by a pre-selected set of nodes: similar to
US senate voting rules.
3/19/2018
Public and Private Blockchains
Additional Differences
Public Private/ Consortium
Blockchaine rules can’t be altered. For
example, once transaction is registered in
the block, the records can’t be altered.
Blocchaine rules can be altered by the
consortium or the owner of the blockchain,
modify or revert a transaction etc.
The transaction verification is slow – proof of
work takes time.
The transaction verification is based on
voting so it can be fast.
Consensus is slow: 99.9999% finality needed
by Bitcoin that takes about 2 hours
Consensus is fast: it can be in seconds
3/19/2018
Current Blockchain Systems
Name Consensus
Mechanism
Smart Contract
Language
Application
Type
Hyperledger 0.6.0 PBFT Golang, Java General
Hyperledger 1.0.0 Kafka (Ordering service) Golang, Java General
Ethereum* PoW Solidity, Serpent, LLL General
Quorum* Raft Golang General
Parity* Trusted validators Solidity, Serpent, LLL General
Sawtooth Lake PoET (Elapsed Time) Python General
Corda Raft Kotlin, Java Digital assets
IOTA IOTA’s Tangle Digital assets
Bitcoin PoW Golang, C++ Crypto-currency
Litecoin PoW Golang, C++ Crypto-currency
ZCash PoW C++ Crypto-currency
3/19/2018
* Ethereum derivatives
Why Blockchain is important to Us
Blockchain is not replacing traditional
business model with lower-cost solutions but
it has a potential to create new foundations
for our economic and social system.
(The Truth about Blockchain, HBR)
3/19/2018
Blockchain can be a Foundational
Technology like TCP/IP
• TCP/IP introduced in 1972, turned then established
telecommunication model on its head
– Opened a shared public network with no central authority for its
maintenance
– Transmitted information by breaking into small packages
– The packets can take any route on the network
– They can be reassembled/disassembled on receiving nodes
– Gave rise to World Wide Web in 1990
– Birth and development of
• Plumbing companies
• Browser/Server companies
• Service/Application companies
• eCommerce, news, search etc.
3/19/2018
Blockchain Adoption
3/19/2018
Putting Things in Perspective
Performance Benchmark
3/19/2018
• YCSB: Benchmark used for NoSQL database performance
• Smallbank: Benchmark used for OLTP workload
• H-Store: An In-Memory database
Blockchain Development
• Cloud
– Azure Blockchain Service
• Ethereum Consortium Blockchanin
• Hyperledger Fabric Blockchain
– Azure Blockchain Templates
• R3 Corda
• Quorum and
• others
– IBM Blockchain Platform
• Hyperledger Fabric
– Oracle Blockchain Service
• Coming soon…
– AWS
• Its still working on with different partners such as Quorum, Corda etc.
3/19/2018
Resources and acknowledgements
• Wikipedia
• https://github.com/ethereum/wiki/wiki/White-Paper
• http://nakamotoinstitute.org/finney/rpow/
• https://www.investopedia.com/terms/g/generalledger.asp
• Byzantine Image
• https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/
• The truth about blockchain
3/19/2018
Q & A

More Related Content

What's hot

BitCoin Protocol
BitCoin ProtocolBitCoin Protocol
BitCoin Protocol
Consulthinkspa
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
Aayt Bahaa
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
subbul
 
How to develop Decentralized App (ĐApp) on Ethereum
How to develop Decentralized App (ĐApp) on EthereumHow to develop Decentralized App (ĐApp) on Ethereum
How to develop Decentralized App (ĐApp) on Ethereum
DEV Cafe
 
What is a blockchain
What is a blockchainWhat is a blockchain
What is a blockchain
Len Bass
 
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
Paperchain
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune
Uday Kothari
 
Blockchain and bitcoin
Blockchain and bitcoinBlockchain and bitcoin
Blockchain and bitcoin
Tejhaskar Ashok Kumar
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
Akshay Kumar
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
Tomasz Tomczyk
 
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
Ingo Weber
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
Audrius Ramoska
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
boolberry
 
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Prithwis Mukerjee
 
Session 3 introduction blockchain by franco 22 januari
Session 3   introduction blockchain by franco 22 januariSession 3   introduction blockchain by franco 22 januari
Session 3 introduction blockchain by franco 22 januari
Arthur Janse
 
How to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTOHow to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTO
Product School
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
mohammad alkhalil
 
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Jim Flynn
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and Demonstration
Yao Yao
 
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201..."How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
Equal Experts
 

What's hot (20)

BitCoin Protocol
BitCoin ProtocolBitCoin Protocol
BitCoin Protocol
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
How to develop Decentralized App (ĐApp) on Ethereum
How to develop Decentralized App (ĐApp) on EthereumHow to develop Decentralized App (ĐApp) on Ethereum
How to develop Decentralized App (ĐApp) on Ethereum
 
What is a blockchain
What is a blockchainWhat is a blockchain
What is a blockchain
 
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
201811 Bitcoin, Blockchain and the Technology behind Cryptocurrencies
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune
 
Blockchain and bitcoin
Blockchain and bitcoinBlockchain and bitcoin
Blockchain and bitcoin
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
Blockchains and Smart Contracts: Architecture Design and Model-Driven Develop...
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
 
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2
 
Session 3 introduction blockchain by franco 22 januari
Session 3   introduction blockchain by franco 22 januariSession 3   introduction blockchain by franco 22 januari
Session 3 introduction blockchain by franco 22 januari
 
How to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTOHow to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTO
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and Demonstration
 
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201..."How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
 

Similar to Introduction to Blockchain

Bitcoin presentation
Bitcoin presentationBitcoin presentation
Bitcoin presentation
Francis Pouliot
 
A Primer on Blockchain and its Potential, with a Focus on the GCC
A Primer on Blockchain and its Potential, with a Focus on the GCCA Primer on Blockchain and its Potential, with a Focus on the GCC
A Primer on Blockchain and its Potential, with a Focus on the GCC
Zeyad T. Al Mudhaf
 
Bitcoins
BitcoinsBitcoins
Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ss
Howard Anglin
 
Blockchain
Blockchain Blockchain
Blockchain
Arpita Gupta
 
01 what is blockchain
01 what is blockchain01 what is blockchain
01 what is blockchain
BastianBlankenburg
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 
Can we safely adapt the construction of permissionless blockchain to user dem...
Can we safely adapt the construction of permissionless blockchain to user dem...Can we safely adapt the construction of permissionless blockchain to user dem...
Can we safely adapt the construction of permissionless blockchain to user dem...
I MT
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
Roger Royse
 
blockchain.pptx
blockchain.pptxblockchain.pptx
blockchain.pptx
19MEB302SahilAli
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Payment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & BeyondPayment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & Beyond
Alexander Kiriakou
 
IP Considerations for Blockchain Technology
IP Considerations for Blockchain TechnologyIP Considerations for Blockchain Technology
IP Considerations for Blockchain Technology
Nelson Rosario
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
Bitcoin
BitcoinBitcoin
Bitcoin
Joel John
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of Trust
Marco Segato
 
Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
manishchaitanya
 
Blockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency RegulationsBlockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency Regulations
Amir Rafati
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 

Similar to Introduction to Blockchain (20)

Bitcoin presentation
Bitcoin presentationBitcoin presentation
Bitcoin presentation
 
A Primer on Blockchain and its Potential, with a Focus on the GCC
A Primer on Blockchain and its Potential, with a Focus on the GCCA Primer on Blockchain and its Potential, with a Focus on the GCC
A Primer on Blockchain and its Potential, with a Focus on the GCC
 
Bitcoins
BitcoinsBitcoins
Bitcoins
 
Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ss
 
Blockchain
Blockchain Blockchain
Blockchain
 
01 what is blockchain
01 what is blockchain01 what is blockchain
01 what is blockchain
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
Can we safely adapt the construction of permissionless blockchain to user dem...
Can we safely adapt the construction of permissionless blockchain to user dem...Can we safely adapt the construction of permissionless blockchain to user dem...
Can we safely adapt the construction of permissionless blockchain to user dem...
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
 
blockchain.pptx
blockchain.pptxblockchain.pptx
blockchain.pptx
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Payment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & BeyondPayment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & Beyond
 
IP Considerations for Blockchain Technology
IP Considerations for Blockchain TechnologyIP Considerations for Blockchain Technology
IP Considerations for Blockchain Technology
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of Trust
 
Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
 
Blockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency RegulationsBlockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency Regulations
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
 

Recently uploaded

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 

Recently uploaded (20)

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 

Introduction to Blockchain

  • 2. Blockchain • Blockchain is not Bitcoin • It’s a technology – the foundation of Bitcoin and other cryptocurrencies – that enables transferring an asset from one party to another in a secure manner – is akin to an distributed and open ledger • provides a permanent and complete record of every transaction that has taken place. • needs no central gatekeeper that controls how transactions are recorded, allows anyone on the network can verify and record the transactions 3/19/2018
  • 3. Use case: Transferring Money • Traditional way 3/19/2018 3rd Party • Blockchain way • Alice sends money to 3rd party • 3rd party • verifies Alice has enough funds • verifies identity of Bob • transfers the money to Bob • charge commission • Bob receives the funds • The transfer time depends on the system • No 3rd party • Alice sends money directly to Bob • Cheaper than transferring using traditional route • Funds are immediately available to Bob
  • 4. Ledger 3/19/2018 • A general ledger (using double-entry bookkeeping method) – maintains a list of financial transactions – each financial transaction affects at least two general ledger accounts – and each entry has a debit and a credit transaction – transactions are posted in two columns, with debit postings on the left and credit entries on the right
  • 5. Use Case: Transferring Money Concept of Open Ledger 3/19/2018 Tx $10 Tx $5 • Anyone on the network can see the transactions and verify • If Alice tries to transfer $10 again to Charlie (double spending) it can be verified that Alice does not have enough funds and so the transaction does not get recorded. Tx $10 X
  • 6. Pillars of Blockchain 3/19/2018 Append-only distributed system of record shared across business network Distributed Ledger Ensuring appropriate visibility; transactions are secure, authenticated & verifiable Transactional Integrity Computational logic executed as part of transactions Smart Contract All parties agree to network verified transaction Consensus
  • 7. Distributed Ledger • A blockchain is continuously growing chain of blocks • Blocks are linked using cryptographic hashes • Each block contains – A hash pointer to previous block – A nonce (proof of work) – A list of transactions • Any node on the network can have a copy of the ledger – these special nodes are called miners • It’s analogous to a distributed ledger controlled by no single party 3/19/2018
  • 8. Use Case: Transferring Money Blockchain way: Alice transferring $5 to Bob • Alice publishes the transaction Tx A -> B $5 on the network • All miners receive the notification • They compete among themselves to validate – Verify that A has enough funds – Find a special key that enables this new transaction to existing transactions – this is done using proof of work • The first miner (M1) that accomplishes this updates the ledger and publishes this on the network (along with the proof of work) • M1 receives a reward for the work • Other miners can verify the work and sync their ledger (consensus) 3/19/2018
  • 9. Challenges of Distributed Ledger • Transactional Integrity – Ability to detect tempering • Consensus among the replicas – Updates to the ledger must must be agreed by all parties 3/19/2018
  • 10. Transactional Integrity Transactions are stored as Merkle Tree • Merkle tree is a binary tree in which – Every leaf node is labeled with hash of data node – Every non-leaf node is labeled with cryptographic hash of labels of its child nodes 3/19/2018 BlockchainMerkle Tree
  • 11. Transactional Integrity Malicious user tries to inserting fraudulent transaction • Merkle tree comes to rescue • Merkle tree is a binary tree in which – Every leaf node is labeled with hash of data node – Every non-leaf node is labeled with cryptographic hash of labels of its child nodes 3/19/2018 Transacti on-A Transacti on-B
  • 12. Consensus: Proof of Work Validation of Transactions • Based on the – Hal Finney’s Reusable Proofs or Work – Adam Back’s computationally difficult Hashcash puzzles • It is breakthrough simultaneously solving two problems. 1. It provided a simple and moderately effective consensus algorithm, allowing nodes in the network to collectively agree on a set of canonical updates to the state of the ledger. 2. It provided a mechanism for allowing free entry into the consensus process, solving the political problem of deciding who gets to influence the consensus, while simultaneously preventing sybil attacks. 3/19/2018
  • 13. Byzantine Generals’ Problem • 5 Generals - each with 100 men - to attack a castle having 300 men inside. • 500 can easily overpower 300 if they attach simultaneously • There is a traitor among Generals - can sabotage the attack given a chance by not attacking at the same time as others are attacking 300 outside men may not be enough to overcome 300 inside men • Any General can start the attack by sending a note through a rider to others. Rider is not allowed to see the note details 3/19/2018
  • 14. Byzantine Generals’ Problem Before Proof of Work 3/19/2018
  • 15. Byzantine Generals’ Problem After Proof of Work 3/19/2018 9 9 Finish 30 minutes of work in 10 minutes, or accept the time of attack, spend 10 minutes on new message and forward
  • 16. Proof of Work based on Hashcash Puzzles • Uses partial hash inversion to prove that work was done • Creation 1. Prepare the header, e.g: X-Hashcash: 1:20:1303030600:uid::McMybZIhxKXu57jd:ckvi 2. Increment the counter (initialized to a random number) and append to the header 3. Compute 160-bit SHA-1 hash of the above header • if the first 20 bits of the hash are not zeros go to 2 • (Chance of getting 20 zeros in randomly selected header is 1 in 220) 4. Use the header • Verification – Compute SHA-1 hash of the header and if first 20 bits are not zero reject it. Note: Bitcoin POW: double-SHA256 hash of every block, treated as a 256-bit number, must be less than a dynamically adjusted target, which as of the this time is approximately 2187 (an average of ~269 tries before a valid block is found) 3/19/2018
  • 17. Smart Contract • A computation logic executed when a transaction is performed • Its similar to a database trigger (stored procedure that is automatically executed in response to certain events) • The inputs, outputs, and status affected by smart execution are agreed on by every node. 3/19/2018
  • 18. Blockchain: State Machine • State A -> Transactions -> State B • State: collection of all assets ("unspent transaction outputs" or UTXO) with each UTXO having a denomination and an owner (defined by a 20-byte address a cryptographic public key[1]). • Transaction: contains inputs, each referencing to an existing UTXO and a signature (using owners private key), and one or more outputs, each containing a new UTXO to be added to the state 3/19/2018
  • 19. Blockchain: Myth and Reality 3/19/2018
  • 20. Flavors of Blockchains • Public Blockchains – Fully public and uncontrolled network and state machine secured by proof of work: Bitcoin network, Ethereum – Anyone in the world can participate in the consensus process (Miners) • Fully Private Blockchains – Write permissions is centralized to one organization – Public read permissions can be use case based • Consortium Blockchains (Hybrid of public and fully private) – Partially decentralized: Public read access to the ledger and which part of ledger to be read enabled is controlled – The consensus process is controlled by a pre-selected set of nodes: similar to US senate voting rules. 3/19/2018
  • 21. Public and Private Blockchains Additional Differences Public Private/ Consortium Blockchaine rules can’t be altered. For example, once transaction is registered in the block, the records can’t be altered. Blocchaine rules can be altered by the consortium or the owner of the blockchain, modify or revert a transaction etc. The transaction verification is slow – proof of work takes time. The transaction verification is based on voting so it can be fast. Consensus is slow: 99.9999% finality needed by Bitcoin that takes about 2 hours Consensus is fast: it can be in seconds 3/19/2018
  • 22. Current Blockchain Systems Name Consensus Mechanism Smart Contract Language Application Type Hyperledger 0.6.0 PBFT Golang, Java General Hyperledger 1.0.0 Kafka (Ordering service) Golang, Java General Ethereum* PoW Solidity, Serpent, LLL General Quorum* Raft Golang General Parity* Trusted validators Solidity, Serpent, LLL General Sawtooth Lake PoET (Elapsed Time) Python General Corda Raft Kotlin, Java Digital assets IOTA IOTA’s Tangle Digital assets Bitcoin PoW Golang, C++ Crypto-currency Litecoin PoW Golang, C++ Crypto-currency ZCash PoW C++ Crypto-currency 3/19/2018 * Ethereum derivatives
  • 23. Why Blockchain is important to Us Blockchain is not replacing traditional business model with lower-cost solutions but it has a potential to create new foundations for our economic and social system. (The Truth about Blockchain, HBR) 3/19/2018
  • 24. Blockchain can be a Foundational Technology like TCP/IP • TCP/IP introduced in 1972, turned then established telecommunication model on its head – Opened a shared public network with no central authority for its maintenance – Transmitted information by breaking into small packages – The packets can take any route on the network – They can be reassembled/disassembled on receiving nodes – Gave rise to World Wide Web in 1990 – Birth and development of • Plumbing companies • Browser/Server companies • Service/Application companies • eCommerce, news, search etc. 3/19/2018
  • 26. Putting Things in Perspective Performance Benchmark 3/19/2018 • YCSB: Benchmark used for NoSQL database performance • Smallbank: Benchmark used for OLTP workload • H-Store: An In-Memory database
  • 27. Blockchain Development • Cloud – Azure Blockchain Service • Ethereum Consortium Blockchanin • Hyperledger Fabric Blockchain – Azure Blockchain Templates • R3 Corda • Quorum and • others – IBM Blockchain Platform • Hyperledger Fabric – Oracle Blockchain Service • Coming soon… – AWS • Its still working on with different partners such as Quorum, Corda etc. 3/19/2018
  • 28. Resources and acknowledgements • Wikipedia • https://github.com/ethereum/wiki/wiki/White-Paper • http://nakamotoinstitute.org/finney/rpow/ • https://www.investopedia.com/terms/g/generalledger.asp • Byzantine Image • https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/ • The truth about blockchain 3/19/2018
  • 29. Q & A