SlideShare a Scribd company logo
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Agenda
• Characteristics
• Blockchain Mining
• How to build a chain
• Scaling the network
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Characteristics of a blockchain network
q Each user has a copy of the entire blockchain
q Each user executing the blockchain client is a part of the network
q New blocks added to chain are sent as a broadcast to the network
q Each user updates its local copy of the blockchain
q When the blockchain is queried, every user receives the same answer.
Mining in blockchain, is all about solving a difficult mathematical problem
based on a cryptographic hash algorithm. The miners compete to complete
this task.
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
What is Mining?
The linking of a new block to the
end of the chain is done by a
process called mining.
Each miner has to show that a costly use of
time and energy is dedicated to the
execution of a new block. This evidence is
known as Proof-of-Work.
In an open distributed network, there are no
designated miners. The miners are selected
based on their proof-of-work on a per-block
basis. The miners compete for the right to add
the next block. They get rewards for doing so.
Miners are free to join or leave the network,
while the network continues to operate without
any impact.
The miners work under a consensus protocol. Consensus protocol is a
communication rule to exchange state information between users and their
neighbors in order to reach group agreement by means of distributed decision
making
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Mining Concepts
Consensus mechanism is like a race, in which
the winner is rewarded. The winner is the miner
that is able to add a new block to the chain that
is accepted by other miners
There are other methods which are implemented
in place of proof-of-work
Proof-of-Stake
PoS is a type of algorithm by which a cryptocurrency blockchain network aims to achieve
distributed consensus. In PoS-based cryptocurrencies the creator of the next block is chosen
via various combinations of random selection and wealth or age (i.e. the stake).
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Mining Concepts – contd.
Proof-of-Burn
This is a method for distributed consensus and an alternative to Proof of Work
and Proof of Stake. It can also be used for bootstrapping one cryptocurrency off of
another. The idea is that miners should show proof that they burned some coins - that is,
sent them to a verifiably non-spendable address.
SOURCE: WIKIPEDIA
Proof-of-Retrievability
POR is a compact proof by a miner ( prover) to a user (verifier) that a target file F in
memory or storage is intact, in the sense that the client can fully recover it. As PORs incur
lower communication complexity than transmission of F itself, they are an attractive building
block for high-assurance.
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
How to build the chain?
Ø The initial block is at height 0.
Ø A miner solves a block at height 1 (I)
Ø Simultaneously another miner solves another block 1B (II)
Ø These two blocks may or may not contain same transactions. Both blocks are considered
provisional, so some miners would continue to work on adding to the chain at 1A while other to
the chain 1B
Ø Eventually a new block is created and attached to 1B as 2B (III). Since all miners must work at
the highest height, miners working on 1A, stop and start working on creating a block to attach to
the accepted block 2. As a result, one miner is successful in creating and attaching a block at
height 3 and broadcasts this update to the network (IV)
Ø All of the other miners abandon their work at height two and starts working
at height 4 and a miner successfully adds a block and broadcasts (V)
Ø But another miner creates another block before receiving this update,
resulting in a fork in the chain (VI)
Ø This race condition may continue resulting in creations of additional blocks
(VII)
Ø The miners working on 5B solves a block thus adding a
new block 6 (VIII). This is broadcasted to the network.
Ø Now all workers start working to solve blocks to
append to 6. This activity continues as the chain
grows, with occasional forks that are eventually
discarded.
A blockchain continually grows
and never shrinks. For some
applications, a user need to store
the entire blockchain to perform
all the functions like Bitcoin. This
results in a requirement for huge
processing and memory
resources. Unlike Bitcoin, there are
other applications not requiring
all the users to perform all the
blockchain tasks or storing the
entire chain.
These systems can be configured
to provide a subset of all the tasks
of a full implementation.
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Scaling the chain Judmayer, Stifter, Krombholz and Weippl defined the
following 5 categories of configuration:
ü Basic Client: A user-controlled device perfoms key
management operations excluding any P2P network
communication. E.g. – hardware clients/wallets.
ü Thin Client: This can perform some P2P
communications like verification but doesn’t keep a
copy of the full blockchain.
ü Thick Client: Performs all P2P tasks including
verification and keeps a copy of the full blockchain.
This client is also know as a full node.
ü Fully Functional Basic Client: Performs all the
functions of a thick client and executes the mining
algorithm.
ü Hosted Client: All tasks are performed by a third party
on behalf of the user. This is not a user-controlled
device. User communicates with the third party using
cryptographic secrets.
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
Scaling the chain – How to increase scalability?
In some applications, a full client may not store the full chain going back to the genesis block. Few
archival nodes can be used to bootstrap fully validated nodes from the beginning.
ü Scalability can be increased by moving some computations off the
chain to reduce the load on the network nodes.
ü Scalability can be increased by reducing the information every node
has to store and process. This way, the system can process more
parallel transactions.
ü Scalability increases by making more space for transactions by
moving certain data within the block to another extended block.
ü Scalability can be increased by only broadcasting net effect of
transactions to reduce the total number of transactions broadcasted
on the blockchain.
SANJAY BASU SANJBASU@CLOUDFLOATERS.COM
• Stallings, W., Cryptography and Network Security, Seventh Edition, ISBN-13: 978-0134444284, Pearson, 2017.
• Judmayer, A., Stifter, N., Krombholz, K., and Weippl, E., Blocks and Chains: Introduction to Bitcoin, Cryptocurrencies,
and Their Consensus. Synthesis Lectures on Information Security, Privacy, and Trust,ISBN-13: 978-1627057165,
Morgan & Claypool, 2017.
• Buterin, M.V., “On Public and Private Blockchains,” Ethereum Blog, August 7, 2015,
https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/
• Transparency Market Research, “Blockchain Technology Market (Type - Public Blockchain, Private Blockchain, and
Consortium Blockchain; Application - Financial Services and Non-financial Sector) - Global Industry Analysis, Size,
Share, Growth, Trends, and Forecast 2016–2024,” 2017.
• Velde, F., “Bitcoin: A primer,” Chicago Fed Letter, December 2013,
http://www.chicagofed.org/digital_assets/publications/chicago_fed_letter/2013/cfldecember2013_317.pdf
• Underwood, S., “Blockchain Beyond Bitcoin,” Communications of the ACM, November 2016.
• Prisco, G., “Department of Homeland Security Awards Blockchain Tech Development Grants for Identity Management
and Privacy Protection,” Bitcoin Magazine, August 18, 2016.
• Regnier, P., “ICO Is the New IPO,” Bloomberg BusinessWeek, June 19, 1917.
• Androulaki, E., “Cryptography and Protocols in Hyperledger Fabric,” Real-World Cryptography Conference, 2017.
• Cachin, C., “Architecture of the Hyperledger Blockchain Fabric,” Workshop on Distributed Cryptocurrencies and
Consensus Ledgers, July 2016.
References for part 2

More Related Content

What's hot

How does the Bitcoin network work?
How does the Bitcoin network work?How does the Bitcoin network work?
How does the Bitcoin network work?
Akshay Kumar
 
Blockchain, bitcoin
Blockchain, bitcoinBlockchain, bitcoin
Blockchain, bitcoin
Sathish VJ
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
boolberry
 
Bitcoin & Ethereum Address
Bitcoin & Ethereum AddressBitcoin & Ethereum Address
Bitcoin & Ethereum Address
Po Wei Chen
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
Rashi Singh
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2
Wojciech Langiewicz
 
Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?
Fermat Jade
 
Bitcoin: introduction for programmers - Pecha Kucha
Bitcoin:   introduction for programmers - Pecha KuchaBitcoin:   introduction for programmers - Pecha Kucha
Bitcoin: introduction for programmers - Pecha Kucha
Wojciech Langiewicz
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmers
Wojciech Langiewicz
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
Nicholas Lin
 
Blockchain
BlockchainBlockchain
Blockchain
Soichiro Takagi
 
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
 
Block chain
Block chainBlock chain
Block chain
gehad hamdy
 
Bitcoin - Beyond the basics
Bitcoin - Beyond the basicsBitcoin - Beyond the basics
Bitcoin - Beyond the basics
Chris DeRose
 
Blockchain Deconstructed - by nexxworks
Blockchain Deconstructed - by nexxworks Blockchain Deconstructed - by nexxworks
Blockchain Deconstructed - by nexxworks
nexxworks
 
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
Ninad Sarang
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
Audrius Ramoska
 
Blockchain bootcamp for boards
Blockchain bootcamp for boardsBlockchain bootcamp for boards
Blockchain bootcamp for boards
Jason Liew 廖颂成
 
Pi network
Pi networkPi network
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 

What's hot (20)

How does the Bitcoin network work?
How does the Bitcoin network work?How does the Bitcoin network work?
How does the Bitcoin network work?
 
Blockchain, bitcoin
Blockchain, bitcoinBlockchain, bitcoin
Blockchain, bitcoin
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
 
Bitcoin & Ethereum Address
Bitcoin & Ethereum AddressBitcoin & Ethereum Address
Bitcoin & Ethereum Address
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2
 
Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?
 
Bitcoin: introduction for programmers - Pecha Kucha
Bitcoin:   introduction for programmers - Pecha KuchaBitcoin:   introduction for programmers - Pecha Kucha
Bitcoin: introduction for programmers - Pecha Kucha
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmers
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
 
Blockchain
BlockchainBlockchain
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?
 
Block chain
Block chainBlock chain
Block chain
 
Bitcoin - Beyond the basics
Bitcoin - Beyond the basicsBitcoin - Beyond the basics
Bitcoin - Beyond the basics
 
Blockchain Deconstructed - by nexxworks
Blockchain Deconstructed - by nexxworks Blockchain Deconstructed - by nexxworks
Blockchain Deconstructed - by nexxworks
 
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
 
Blockchain bootcamp for boards
Blockchain bootcamp for boardsBlockchain bootcamp for boards
Blockchain bootcamp for boards
 
Pi network
Pi networkPi network
Pi network
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 

Similar to Blockchain part 2

Blockchain seminar
Blockchain seminarBlockchain seminar
Blockchain seminar
Amiyabablu
 
The Basic Theories of Blockchain
The Basic Theories of BlockchainThe Basic Theories of Blockchain
The Basic Theories of Blockchain
Sota Watanabe
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
Md. Syful Azam
 
Blockchain based Banking System
Blockchain based Banking SystemBlockchain based Banking System
Blockchain based Banking System
Gaurav Singh
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 
IRJET- Blockchain Technology
IRJET- Blockchain TechnologyIRJET- Blockchain Technology
IRJET- Blockchain Technology
IRJET Journal
 
Blockchain&Crypto.pptx
Blockchain&Crypto.pptxBlockchain&Crypto.pptx
Blockchain&Crypto.pptx
RafayNaveed4
 
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorandLets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
JitendraNaik16
 
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain,  Hyperledger, DeFi, Web 3.0 - understanding and conceptsBlockchain,  Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
keithfernandez19
 
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
 
Blockchain Technology and its effect on Environment: A Comparative Study betw...
Blockchain Technology and its effect on Environment: A Comparative Study betw...Blockchain Technology and its effect on Environment: A Comparative Study betw...
Blockchain Technology and its effect on Environment: A Comparative Study betw...
AI Publications
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
Jérôme Kehrli
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
Rajlakshmi Maurya
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
Nimmy Solomon
 
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
 
Basics of Block Chain
Basics of Block ChainBasics of Block Chain
Basics of Block Chain
Tharindu Weerasinghe
 
Blockchain Technology Overview
Blockchain Technology OverviewBlockchain Technology Overview
Blockchain Technology Overview
IRJET Journal
 
Introduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionIntroduction to Blockchain Web3 Session
Introduction to Blockchain Web3 Session
DSCIITPatna
 
1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt
bansalvvinayak832
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash System
Paras Jain
 

Similar to Blockchain part 2 (20)

Blockchain seminar
Blockchain seminarBlockchain seminar
Blockchain seminar
 
The Basic Theories of Blockchain
The Basic Theories of BlockchainThe Basic Theories of Blockchain
The Basic Theories of Blockchain
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Blockchain based Banking System
Blockchain based Banking SystemBlockchain based Banking System
Blockchain based Banking System
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
 
IRJET- Blockchain Technology
IRJET- Blockchain TechnologyIRJET- Blockchain Technology
IRJET- Blockchain Technology
 
Blockchain&Crypto.pptx
Blockchain&Crypto.pptxBlockchain&Crypto.pptx
Blockchain&Crypto.pptx
 
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorandLets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
 
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain,  Hyperledger, DeFi, Web 3.0 - understanding and conceptsBlockchain,  Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
 
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
 
Blockchain Technology and its effect on Environment: A Comparative Study betw...
Blockchain Technology and its effect on Environment: A Comparative Study betw...Blockchain Technology and its effect on Environment: A Comparative Study betw...
Blockchain Technology and its effect on Environment: A Comparative Study betw...
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
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
 
Basics of Block Chain
Basics of Block ChainBasics of Block Chain
Basics of Block Chain
 
Blockchain Technology Overview
Blockchain Technology OverviewBlockchain Technology Overview
Blockchain Technology Overview
 
Introduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionIntroduction to Blockchain Web3 Session
Introduction to Blockchain Web3 Session
 
1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash System
 

Recently uploaded

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
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
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
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
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
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
 
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
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
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
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
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
 

Recently uploaded (20)

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
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...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
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
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
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...
 
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*
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
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
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
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
 

Blockchain part 2

  • 2. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Agenda • Characteristics • Blockchain Mining • How to build a chain • Scaling the network
  • 3. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Characteristics of a blockchain network q Each user has a copy of the entire blockchain q Each user executing the blockchain client is a part of the network q New blocks added to chain are sent as a broadcast to the network q Each user updates its local copy of the blockchain q When the blockchain is queried, every user receives the same answer.
  • 4. Mining in blockchain, is all about solving a difficult mathematical problem based on a cryptographic hash algorithm. The miners compete to complete this task. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM What is Mining? The linking of a new block to the end of the chain is done by a process called mining. Each miner has to show that a costly use of time and energy is dedicated to the execution of a new block. This evidence is known as Proof-of-Work. In an open distributed network, there are no designated miners. The miners are selected based on their proof-of-work on a per-block basis. The miners compete for the right to add the next block. They get rewards for doing so. Miners are free to join or leave the network, while the network continues to operate without any impact.
  • 5. The miners work under a consensus protocol. Consensus protocol is a communication rule to exchange state information between users and their neighbors in order to reach group agreement by means of distributed decision making SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Mining Concepts Consensus mechanism is like a race, in which the winner is rewarded. The winner is the miner that is able to add a new block to the chain that is accepted by other miners There are other methods which are implemented in place of proof-of-work
  • 6. Proof-of-Stake PoS is a type of algorithm by which a cryptocurrency blockchain network aims to achieve distributed consensus. In PoS-based cryptocurrencies the creator of the next block is chosen via various combinations of random selection and wealth or age (i.e. the stake). SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Mining Concepts – contd. Proof-of-Burn This is a method for distributed consensus and an alternative to Proof of Work and Proof of Stake. It can also be used for bootstrapping one cryptocurrency off of another. The idea is that miners should show proof that they burned some coins - that is, sent them to a verifiably non-spendable address. SOURCE: WIKIPEDIA Proof-of-Retrievability POR is a compact proof by a miner ( prover) to a user (verifier) that a target file F in memory or storage is intact, in the sense that the client can fully recover it. As PORs incur lower communication complexity than transmission of F itself, they are an attractive building block for high-assurance.
  • 7. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM How to build the chain? Ø The initial block is at height 0. Ø A miner solves a block at height 1 (I) Ø Simultaneously another miner solves another block 1B (II) Ø These two blocks may or may not contain same transactions. Both blocks are considered provisional, so some miners would continue to work on adding to the chain at 1A while other to the chain 1B Ø Eventually a new block is created and attached to 1B as 2B (III). Since all miners must work at the highest height, miners working on 1A, stop and start working on creating a block to attach to the accepted block 2. As a result, one miner is successful in creating and attaching a block at height 3 and broadcasts this update to the network (IV) Ø All of the other miners abandon their work at height two and starts working at height 4 and a miner successfully adds a block and broadcasts (V) Ø But another miner creates another block before receiving this update, resulting in a fork in the chain (VI) Ø This race condition may continue resulting in creations of additional blocks (VII) Ø The miners working on 5B solves a block thus adding a new block 6 (VIII). This is broadcasted to the network. Ø Now all workers start working to solve blocks to append to 6. This activity continues as the chain grows, with occasional forks that are eventually discarded.
  • 8. A blockchain continually grows and never shrinks. For some applications, a user need to store the entire blockchain to perform all the functions like Bitcoin. This results in a requirement for huge processing and memory resources. Unlike Bitcoin, there are other applications not requiring all the users to perform all the blockchain tasks or storing the entire chain. These systems can be configured to provide a subset of all the tasks of a full implementation. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Scaling the chain Judmayer, Stifter, Krombholz and Weippl defined the following 5 categories of configuration: ü Basic Client: A user-controlled device perfoms key management operations excluding any P2P network communication. E.g. – hardware clients/wallets. ü Thin Client: This can perform some P2P communications like verification but doesn’t keep a copy of the full blockchain. ü Thick Client: Performs all P2P tasks including verification and keeps a copy of the full blockchain. This client is also know as a full node. ü Fully Functional Basic Client: Performs all the functions of a thick client and executes the mining algorithm. ü Hosted Client: All tasks are performed by a third party on behalf of the user. This is not a user-controlled device. User communicates with the third party using cryptographic secrets.
  • 9. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM Scaling the chain – How to increase scalability? In some applications, a full client may not store the full chain going back to the genesis block. Few archival nodes can be used to bootstrap fully validated nodes from the beginning. ü Scalability can be increased by moving some computations off the chain to reduce the load on the network nodes. ü Scalability can be increased by reducing the information every node has to store and process. This way, the system can process more parallel transactions. ü Scalability increases by making more space for transactions by moving certain data within the block to another extended block. ü Scalability can be increased by only broadcasting net effect of transactions to reduce the total number of transactions broadcasted on the blockchain.
  • 10. SANJAY BASU SANJBASU@CLOUDFLOATERS.COM • Stallings, W., Cryptography and Network Security, Seventh Edition, ISBN-13: 978-0134444284, Pearson, 2017. • Judmayer, A., Stifter, N., Krombholz, K., and Weippl, E., Blocks and Chains: Introduction to Bitcoin, Cryptocurrencies, and Their Consensus. Synthesis Lectures on Information Security, Privacy, and Trust,ISBN-13: 978-1627057165, Morgan & Claypool, 2017. • Buterin, M.V., “On Public and Private Blockchains,” Ethereum Blog, August 7, 2015, https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/ • Transparency Market Research, “Blockchain Technology Market (Type - Public Blockchain, Private Blockchain, and Consortium Blockchain; Application - Financial Services and Non-financial Sector) - Global Industry Analysis, Size, Share, Growth, Trends, and Forecast 2016–2024,” 2017. • Velde, F., “Bitcoin: A primer,” Chicago Fed Letter, December 2013, http://www.chicagofed.org/digital_assets/publications/chicago_fed_letter/2013/cfldecember2013_317.pdf • Underwood, S., “Blockchain Beyond Bitcoin,” Communications of the ACM, November 2016. • Prisco, G., “Department of Homeland Security Awards Blockchain Tech Development Grants for Identity Management and Privacy Protection,” Bitcoin Magazine, August 18, 2016. • Regnier, P., “ICO Is the New IPO,” Bloomberg BusinessWeek, June 19, 1917. • Androulaki, E., “Cryptography and Protocols in Hyperledger Fabric,” Real-World Cryptography Conference, 2017. • Cachin, C., “Architecture of the Hyperledger Blockchain Fabric,” Workshop on Distributed Cryptocurrencies and Consensus Ledgers, July 2016. References for part 2