SlideShare a Scribd company logo
Blockchain
Presented By: Gopal Goel
Contents
• What is Blockchain and why do we need it?
• How Blockchain works?
• Data Structure
• Protocol
• Networking
• Applications of Blockchain
• Future of Blockchain
Internet Of Information
• Since the advent of Internet, we have been exchanging information
over the internet in the form of text, images, videos, etc.
• Everything we share over the internet is a copy. There is no
original.
• E.g. A digital image sent to a friend is a copy. I still have the image even after
sending it to a friend.
Internet of Value
• How do we exchange things of value over Internet?
• E.g. money, stocks, property ownership, etc.
• How do we create Digital Scarcity?
• A thing of value on the digital platform that is scarce or limited.
Double Spend Problem
• If a person has a digital asset, say money, he can give it to some
other person and still have a copy of the original digital asset which
he may spend again.
• How do we make sure that once an asset is spent, it cannot be spent
again by the previous owner?
Approaches to Double Spend Problem
• Centralized:
• This is usually implemented using an on-line central trusted third party that
can verify whether a token has been spent.
• Decentralized:
• Blockchain
Problems with Centralized Approach
• This approach normally represents a single point of failure from
both availability and trust viewpoints.
• E.g. In Banking,
• If the bank’s website goes down, no way to transact.
• Easy to be attacked by the hackers.
• Both parties have to trust that the bank transfers money securely without errors.
• The central party often charges us a hefty fee for using their service.
• E.g. Sending money cross-country using services like Western Union, etc.
takes a fee of 10-20% of the amount.
Blockchain
• It is a decentralized approach of solving the Double Spend
Problem.
• This approach was first introduced in 2008 and since then
hundred’s of different implementations have been done.
• Bitcoin is the first application that uses Blockchain technology.
• We will sometimes refer to its implementation to understand Blockchain.
What is Blockchain?
• In the decentralized approach, we use a public ledger to record the
transactions. This ledger was originally termed as Blockchain.
• It is like a giant data store that is used by everyone to read and
write transactions.
Properties
• Decentralized and Distributed
• No single point of failure from both availability and trust viewpoints.
• Immutable
• Once a transaction is recorded in this data store, it cannot be changed.
• Durability and Attack Resistance
• It is practically not possible to record false transactions.
• Fault Tolerance
• Service is available at all time.
Blockchain Data Structure
Hash Pointer
• Like a normal pointer but stores two things:
• Address
• Hash of the data in that address
• Benefit
• Verify data integrity
• In layman’s terms a liked-list using hash pointers instead of normal
pointer is the Blockchain.
• Each node is like a block and linked together forms the Blockchain.
Immutable Property
Immutable Property
Immutable Property
Immutable Property
Blockchain Data Structure
• An append-only immutable data structure.
• How to achieve decentralization?
Aspects of Decentralization
• Who maintains the ledger?
• Peer-to-peer network: open to anyone, low barrier to entry.
• Every peer maintain a copy of the ledger and remain in sync with each other.
• Who has the authority over which transactions are valid?
• Who creates the digital coins?
• Should be limited to achieve digital scarcity.
P2P Protocol
• Ad-hoc network with random topology
• All nodes are equal
• New nodes can join at any time
• A new node joining the network ask any existing node for neighbor addresses
and then ask neighbor’s neighbor and in this way gets connected to many
nodes.
Distributed Consensus
• Key technical challenge of a decentralized digital coin system is :
Distributed Consensus.
• How do all the nodes in the system agree on only one fact?
• Traditional motivation:
• Reliability in Distributed Systems like Distributed Databases, etc.
• Build a distributed key-value store.
• Not much progress in such models.
• Hard to reach consensus because network is imperfect, latency, etc.
• Nodes crash time to time.
Distributed Consensus in Blockchain
• Introduce Incentives
• Possible because it’s a currency.
• Embrace randomness
• Consensus happens over a long time.
• Consensus is probabilistic and not deterministic.
Algorithm
1. New transaction is sent to any of the nodes in the network.
• If the transaction is invalid, it is rejected.
• If valid, the node stores it in the list of unconfirmed transaction.
• The transaction is then broadcasted to neighbor nodes.
2. In each round a random node gets to broadcast its block.
• A block contains a list of unconfirmed but valid transactions.
• It also contains the hash of the previous block.
3. Other nodes accept the block after checking the block.
• Nodes express acceptance by adding the block to its own copy of the
Blockchain.
4. Nodes always maintain their copy with the longest valid chain.
Transaction Propagation – Flooding Algorithm
Transaction Propagation – Flooding Algorithm
Transaction Propagation – Flooding Algorithm
Transaction Propagation – Flooding Algorithm
Race Conditions
• Transactions may conflict
• Nodes may accept/reject the conflicting transaction.
• The transaction that ultimately ends up in the block chain is the one that is
finally accepted.
Consensus Protocol
Consensus Protocol
new added block
Double Spend Attack
Longest chain wins
Incentive for Honesty
Incentive for Honesty
Incentive
• Creator of the block gets to include a special transaction in the
block, the coin creation transaction.
• It creates coin and store it in the name of the block creator.
• Those coins are only useful if it ends up in the long-term consensus
branch.
Remaining problems
• How to pick random node?
• How to avoid a free-for-all due to rewards?
• How to prevent Sybil attack?
Proof of Work
• All the nodes who wants to propose the next block, needs to do
some work before they proposes the block and attach the proof of
their work in the block.
• Nodes need to make sure that the hash of the block is of form:
• “00000000ahdn48b37r3b…nbf7f48”
• Few zeros in the beginning.
• Try adding random string in the block so that the hash is of the above form.
• The node which find it first, broadcast the new block and all nodes accept after
check the block validity and the proof of work.
Sybil Attack
• The network is secure unless 51% of the nodes are malicious.
• Perspective:
• In case of Bitcoin, the amount of computing power required to attack the
network is more than the computing power of top 500 Supercomputers
combined.
• No person or organization have anything close to that amount of computing
power as of now.
Drawbacks of Blockchain
• Distributed consensus in probabilistic and no deterministic.
• We need to wait for few more blocks to consider a transaction to be truly confirmed.
• Probability increases exponentially but never 100%.
• Takes a long time for the block to get propagated to the entire network.
• Not suitable for instant payments.
• All nodes need to maintain an entire copy of the block chain since the genesis
block.
• The block only increases with time. Eventually, we will face storage issues.
• 51% attack possible.
• Bootstrapping problem.
• Difficult to make changes in the software.
Applications of Blockchain
• 1st Generation:
• Bitcoin: A decentralized cryptocurrency.
• Many other crypto-currencies. Together called Altcoins.
• 2nd Generation:
• Ethereum:
• It’s a programmable Blockchain. Instead of simply storing records in the distributed
ledger, we can have store code in the ledger.
• Able to deploy smart contracts.
• 3rd Generation:
• Uses Directed Acyclic Graph instead of a Linked List style block chain.
• E.g. Iota, Cardano, etc.
Blockchain at Present
• “Encryption and cryptocurrency take power from centralized
systems and put it back into people's hands. But they come with
the risk of being harder to control. I'm interested to go deeper and
study the positive and negative aspects of these technologies, and
how best to use them in our services.”, posted Mark Zuckerberg,
CEO of Facebook, on 4th Jan 2018.
• Other Big companies working on Blockchain Technology Include:
• IBM, Walmart, Visa, ING, etc.
• 100s of startups working on Decentralized Applications:
• Open-Bazaar, Eth-Tweet, etc.
References
• Bitcoin White Paper: https://bitcoin.org/bitcoin.pdf
• Books:
• “Bitcoin and Cryptocurrency Technologies” by Arvind Narayan and Andrew
Miller from Princeton University.
• “The Internet of Money”, by Andreas M. Antonopoulos.
Questions?

More Related Content

What's hot

Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
Oded Noam
 
Bitcoin intro
Bitcoin introBitcoin intro
Bitcoin intro
blockchained
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
Giuseppe Andreetti
 
Blockchain technology & it's application
Blockchain technology & it's applicationBlockchain technology & it's application
Blockchain technology & it's application
Bhushan Vidhate
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
Priyab Satoshi
 
Introduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologiesIntroduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologies
Paweł Wacławczyk
 
Blockchain bootcamp for boards
Blockchain bootcamp for boardsBlockchain bootcamp for boards
Blockchain bootcamp for boards
Jason Liew 廖颂成
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN Explosion
Coin Sciences Ltd
 
Etherium Intro for techies
Etherium Intro for techiesEtherium Intro for techies
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
Coin Sciences Ltd
 
Overview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus MechanismsOverview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus Mechanisms
Johannes Ahlmann
 
20190606 blockchain101
20190606 blockchain10120190606 blockchain101
20190606 blockchain101
Hu Kenneth
 
Blockchain technology for the grid
Blockchain technology for the gridBlockchain technology for the grid
Blockchain technology for the grid
malikmayank
 
Understanding blockchains
Understanding blockchainsUnderstanding blockchains
Understanding blockchains
Len Bass
 
Blockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v engBlockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v eng
David Vangulick
 
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
 
Lightning Network Economics: Channels
Lightning Network Economics: ChannelsLightning Network Economics: Channels
Lightning Network Economics: Channels
guasoni
 
Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
Shreyas Chaudhari
 
Some Thoughts On Bitcoin
Some Thoughts On BitcoinSome Thoughts On Bitcoin
Some Thoughts On Bitcoin
Dan Kaminsky
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
Audrius Ramoska
 

What's hot (20)

Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Bitcoin intro
Bitcoin introBitcoin intro
Bitcoin intro
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Blockchain technology & it's application
Blockchain technology & it's applicationBlockchain technology & it's application
Blockchain technology & it's application
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
 
Introduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologiesIntroduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologies
 
Blockchain bootcamp for boards
Blockchain bootcamp for boardsBlockchain bootcamp for boards
Blockchain bootcamp for boards
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN Explosion
 
Etherium Intro for techies
Etherium Intro for techiesEtherium Intro for techies
Etherium Intro for techies
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
 
Overview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus MechanismsOverview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus Mechanisms
 
20190606 blockchain101
20190606 blockchain10120190606 blockchain101
20190606 blockchain101
 
Blockchain technology for the grid
Blockchain technology for the gridBlockchain technology for the grid
Blockchain technology for the grid
 
Understanding blockchains
Understanding blockchainsUnderstanding blockchains
Understanding blockchains
 
Blockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v engBlockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v eng
 
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
 
Lightning Network Economics: Channels
Lightning Network Economics: ChannelsLightning Network Economics: Channels
Lightning Network Economics: Channels
 
Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
 
Some Thoughts On Bitcoin
Some Thoughts On BitcoinSome Thoughts On Bitcoin
Some Thoughts On Bitcoin
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
 

Similar to Blockchain

Blockchain
BlockchainBlockchain
Blockchain
Abhinand Valasseri
 
What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?
PECB
 
Blockchain (1).pptx
Blockchain (1).pptxBlockchain (1).pptx
Blockchain (1).pptx
MeetPBarasara
 
module-1.pptx
module-1.pptxmodule-1.pptx
module-1.pptx
Raju385766
 
Introduction to Blockchain and Cryptocurrencies
Introduction to Blockchain  and CryptocurrenciesIntroduction to Blockchain  and Cryptocurrencies
Introduction to Blockchain and Cryptocurrencies
Nikhil D Prince
 
Block chain
Block chainBlock chain
Block chain
gehad hamdy
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
WeKCo Coworking
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
M Shamim Iqbal
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
harshitmittal737363
 
blockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challangesblockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challanges
Chetan Kumar S
 
Bitcoins
BitcoinsBitcoins
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
Seval Çapraz
 
BitCoin explained
BitCoin explainedBitCoin explained
BitCoin explained
Harelc
 
Blockchain meetup
Blockchain meetupBlockchain meetup
Blockchain meetup
QuantUniversity
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
Amey Ratnakar Prabhu
 
Blockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency RegulationsBlockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency Regulations
Amir Rafati
 
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
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
Roger Royse
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
Md. Syful Azam
 
Blockchain-Presentation.pptx
Blockchain-Presentation.pptxBlockchain-Presentation.pptx
Blockchain-Presentation.pptx
MeganaaGodhala
 

Similar to Blockchain (20)

Blockchain
BlockchainBlockchain
Blockchain
 
What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?
 
Blockchain (1).pptx
Blockchain (1).pptxBlockchain (1).pptx
Blockchain (1).pptx
 
module-1.pptx
module-1.pptxmodule-1.pptx
module-1.pptx
 
Introduction to Blockchain and Cryptocurrencies
Introduction to Blockchain  and CryptocurrenciesIntroduction to Blockchain  and Cryptocurrencies
Introduction to Blockchain and Cryptocurrencies
 
Block chain
Block chainBlock chain
Block chain
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
 
blockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challangesblockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challanges
 
Bitcoins
BitcoinsBitcoins
Bitcoins
 
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
 
BitCoin explained
BitCoin explainedBitCoin explained
BitCoin explained
 
Blockchain meetup
Blockchain meetupBlockchain meetup
Blockchain meetup
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
 
Blockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency RegulationsBlockchain Ecosystem and Cryptocurrency Regulations
Blockchain Ecosystem and Cryptocurrency Regulations
 
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
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Blockchain-Presentation.pptx
Blockchain-Presentation.pptxBlockchain-Presentation.pptx
Blockchain-Presentation.pptx
 

Recently uploaded

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 

Recently uploaded (20)

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 

Blockchain

  • 2. Contents • What is Blockchain and why do we need it? • How Blockchain works? • Data Structure • Protocol • Networking • Applications of Blockchain • Future of Blockchain
  • 3. Internet Of Information • Since the advent of Internet, we have been exchanging information over the internet in the form of text, images, videos, etc. • Everything we share over the internet is a copy. There is no original. • E.g. A digital image sent to a friend is a copy. I still have the image even after sending it to a friend.
  • 4. Internet of Value • How do we exchange things of value over Internet? • E.g. money, stocks, property ownership, etc. • How do we create Digital Scarcity? • A thing of value on the digital platform that is scarce or limited.
  • 5. Double Spend Problem • If a person has a digital asset, say money, he can give it to some other person and still have a copy of the original digital asset which he may spend again. • How do we make sure that once an asset is spent, it cannot be spent again by the previous owner?
  • 6. Approaches to Double Spend Problem • Centralized: • This is usually implemented using an on-line central trusted third party that can verify whether a token has been spent. • Decentralized: • Blockchain
  • 7. Problems with Centralized Approach • This approach normally represents a single point of failure from both availability and trust viewpoints. • E.g. In Banking, • If the bank’s website goes down, no way to transact. • Easy to be attacked by the hackers. • Both parties have to trust that the bank transfers money securely without errors. • The central party often charges us a hefty fee for using their service. • E.g. Sending money cross-country using services like Western Union, etc. takes a fee of 10-20% of the amount.
  • 8. Blockchain • It is a decentralized approach of solving the Double Spend Problem. • This approach was first introduced in 2008 and since then hundred’s of different implementations have been done. • Bitcoin is the first application that uses Blockchain technology. • We will sometimes refer to its implementation to understand Blockchain.
  • 9. What is Blockchain? • In the decentralized approach, we use a public ledger to record the transactions. This ledger was originally termed as Blockchain. • It is like a giant data store that is used by everyone to read and write transactions.
  • 10. Properties • Decentralized and Distributed • No single point of failure from both availability and trust viewpoints. • Immutable • Once a transaction is recorded in this data store, it cannot be changed. • Durability and Attack Resistance • It is practically not possible to record false transactions. • Fault Tolerance • Service is available at all time.
  • 12. Hash Pointer • Like a normal pointer but stores two things: • Address • Hash of the data in that address • Benefit • Verify data integrity • In layman’s terms a liked-list using hash pointers instead of normal pointer is the Blockchain. • Each node is like a block and linked together forms the Blockchain.
  • 17. Blockchain Data Structure • An append-only immutable data structure. • How to achieve decentralization?
  • 18. Aspects of Decentralization • Who maintains the ledger? • Peer-to-peer network: open to anyone, low barrier to entry. • Every peer maintain a copy of the ledger and remain in sync with each other. • Who has the authority over which transactions are valid? • Who creates the digital coins? • Should be limited to achieve digital scarcity.
  • 19. P2P Protocol • Ad-hoc network with random topology • All nodes are equal • New nodes can join at any time • A new node joining the network ask any existing node for neighbor addresses and then ask neighbor’s neighbor and in this way gets connected to many nodes.
  • 20. Distributed Consensus • Key technical challenge of a decentralized digital coin system is : Distributed Consensus. • How do all the nodes in the system agree on only one fact? • Traditional motivation: • Reliability in Distributed Systems like Distributed Databases, etc. • Build a distributed key-value store. • Not much progress in such models. • Hard to reach consensus because network is imperfect, latency, etc. • Nodes crash time to time.
  • 21. Distributed Consensus in Blockchain • Introduce Incentives • Possible because it’s a currency. • Embrace randomness • Consensus happens over a long time. • Consensus is probabilistic and not deterministic.
  • 22. Algorithm 1. New transaction is sent to any of the nodes in the network. • If the transaction is invalid, it is rejected. • If valid, the node stores it in the list of unconfirmed transaction. • The transaction is then broadcasted to neighbor nodes. 2. In each round a random node gets to broadcast its block. • A block contains a list of unconfirmed but valid transactions. • It also contains the hash of the previous block. 3. Other nodes accept the block after checking the block. • Nodes express acceptance by adding the block to its own copy of the Blockchain. 4. Nodes always maintain their copy with the longest valid chain.
  • 23. Transaction Propagation – Flooding Algorithm
  • 24. Transaction Propagation – Flooding Algorithm
  • 25. Transaction Propagation – Flooding Algorithm
  • 26. Transaction Propagation – Flooding Algorithm
  • 27. Race Conditions • Transactions may conflict • Nodes may accept/reject the conflicting transaction. • The transaction that ultimately ends up in the block chain is the one that is finally accepted.
  • 34. Incentive • Creator of the block gets to include a special transaction in the block, the coin creation transaction. • It creates coin and store it in the name of the block creator. • Those coins are only useful if it ends up in the long-term consensus branch.
  • 35. Remaining problems • How to pick random node? • How to avoid a free-for-all due to rewards? • How to prevent Sybil attack?
  • 36. Proof of Work • All the nodes who wants to propose the next block, needs to do some work before they proposes the block and attach the proof of their work in the block. • Nodes need to make sure that the hash of the block is of form: • “00000000ahdn48b37r3b…nbf7f48” • Few zeros in the beginning. • Try adding random string in the block so that the hash is of the above form. • The node which find it first, broadcast the new block and all nodes accept after check the block validity and the proof of work.
  • 37. Sybil Attack • The network is secure unless 51% of the nodes are malicious. • Perspective: • In case of Bitcoin, the amount of computing power required to attack the network is more than the computing power of top 500 Supercomputers combined. • No person or organization have anything close to that amount of computing power as of now.
  • 38. Drawbacks of Blockchain • Distributed consensus in probabilistic and no deterministic. • We need to wait for few more blocks to consider a transaction to be truly confirmed. • Probability increases exponentially but never 100%. • Takes a long time for the block to get propagated to the entire network. • Not suitable for instant payments. • All nodes need to maintain an entire copy of the block chain since the genesis block. • The block only increases with time. Eventually, we will face storage issues. • 51% attack possible. • Bootstrapping problem. • Difficult to make changes in the software.
  • 39. Applications of Blockchain • 1st Generation: • Bitcoin: A decentralized cryptocurrency. • Many other crypto-currencies. Together called Altcoins. • 2nd Generation: • Ethereum: • It’s a programmable Blockchain. Instead of simply storing records in the distributed ledger, we can have store code in the ledger. • Able to deploy smart contracts. • 3rd Generation: • Uses Directed Acyclic Graph instead of a Linked List style block chain. • E.g. Iota, Cardano, etc.
  • 40. Blockchain at Present • “Encryption and cryptocurrency take power from centralized systems and put it back into people's hands. But they come with the risk of being harder to control. I'm interested to go deeper and study the positive and negative aspects of these technologies, and how best to use them in our services.”, posted Mark Zuckerberg, CEO of Facebook, on 4th Jan 2018. • Other Big companies working on Blockchain Technology Include: • IBM, Walmart, Visa, ING, etc. • 100s of startups working on Decentralized Applications: • Open-Bazaar, Eth-Tweet, etc.
  • 41. References • Bitcoin White Paper: https://bitcoin.org/bitcoin.pdf • Books: • “Bitcoin and Cryptocurrency Technologies” by Arvind Narayan and Andrew Miller from Princeton University. • “The Internet of Money”, by Andreas M. Antonopoulos.

Editor's Notes

  1. Double spend probability decreases exponentially with # of confirmations