SlideShare a Scribd company logo
https://www.flickr.com/photos/intherough/3253349104/
April 2017
Blockchains
Architecture Overview and Consensus Models
Lothar Wieske
https://www.flickr.com/photos/alkalinezoo/89030908/
Digitalization
SMAC
...
Augmented Reality
Blockchain
Internet of Things
...
...
Artificial Intelligence
Cognitive Services
Deep Learning
...
Business >>> Customer
Pipeline >>> Platform
https://www.flickr.com/photos/n28307/11724219854/
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
https://www.flickr.com/photos/gromin/32851914036/
Consensus
Consensus
Digital Platforms
https://www.flickr.com/photos/enerva/8669121231/
CAP
FLP
BFT
Bitcoin Blockchain
LedgerJournalTranaction
Blockchain
Bitcoin Blockchain
Immutability
Signatures
Consensus
HashPrevBlock MerkleRoot
...................................
................
Block Header
Nonce
...................................
...................................
Difficulty Block Header
OP-DUP
OP_HASH160
<pubkeyhash>
OP_EQUALVERIFY
OP__CHECKSIG
<sig>
<pubkey>
TXI
TXO
<sig>
<pubkey>
OP-DUP
OP_HASH160
<pubkeyhash>
OP_EQUALVERIFY
OP__CHECKSIG
Stack
HashPrevBlock is the SHA256 hash of the previous block.
• Immutes all the historical blocks.
MerkleRoot is the merkle root over the transaction list.
• Immutes the current transaction list.
Bitcoin Blockchain – Immutability (I)
HashPrevBlock MerkleRoot
................................
...
................................
...
Block Header
A merkle tree in general hashes elements in a list (leaves) and paires and
hashes results until a merkle root remains.
A merkle tree gives granularity in transaction validation; lite clients can
validate entire blocks, transaction groups, or just single transactions with
partial merkle branches only.
Bitcoin Blockchain – Immutability (II)
#1 #2 #3 #4 #5 #6 #7 #8
78#56#34#12
#1234 #5678
#12345678
tx1 tx2 tx3 tx4 tx5 tx6 tx7 tx8
Bitcoin Blockchain – Signatures (I)
<btcaddress>
<privkey>
<pubkey>
<pubkeyhash>
secp256k1
ripe160(sha256(.))
1+base58(.)+chksum(.)
ECDSA
secp256k1
Bitcoin Blockchain – Signatures (II)
secp256k1
% openssl ecparam -param_enc explicit -text -noout -name secp256k1
Field Type: prime-field
Prime:
00:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:fe:ff:
ff:fc:2f
A: 0
B: 7 (0x7)
Generator (uncompressed):
04:79:be:66:7e:f9:dc:bb:ac:55:a0:62:95:ce:87:
0b:07:02:9b:fc:db:2d:ce:28:d9:59:f2:81:5b:16:
f8:17:98:48:3a:da:77:26:a3:c4:65:5d:a4:fb:fc:
0e:11:08:a8:fd:17:b4:48:a6:85:54:19:9c:47:d0:
8f:fb:10:d4:b8
Order:
00:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
ff:fe:ba:ae:dc:e6:af:48:a0:3b:bf:d2:5e:8c:d0:
36:41:41
Cofactor: 1 (0x1)
https://www.flickr.com/photos/1ffischer/13925891289/ https://www.flickr.com/photos/cogdog/2568019743/
Hashes & Curves
secp256k1SHA-256
Consensus (I)
Byzantine Agreement
(single source has an initial value)
Agreement: All non-faulty processes must agree on the same value.
Consensus Problem
(all processes have an initial value)
Agreement: All non-faulty processes must agree on the same (single) value.
These problems are equivalent to one another!
Consensus (II)
FLP 1985
Impossibility of Distributed Consensus with One FaultyProcess
Fischer & Lynch & Paterson, JACM 1985
The consensus problem involves an asynchronous system
of processes, some of which may beunreliable. The problem
is for the reliable processes to agree on a binary value.
In this paper, it is shown that every protocol for this problem has the
possibility of nontermination, even with only one faulty process.
By way of contrast, solutions are known for the synchronous case, the
“Byzantine Generals”problem.
Consensus (III)
PBFT 1999
Practical Byzantine Fault Tolerance
Castro & Liskov, OSDI 1999
This paper presents a new, practical algorithm for
state machine replication that tolerates Byzantine faults.
The algorithm offers both liveness and safetyprovided at most
out of a total of replicas are simultaneously faulty.
The algorithm works in asynchronous systems like the Internet and it
incorporates important optimizations that enable it to perform efficiently
Consensus (IV)
Nakamoto Consensus 2008
Bitcoin: A Peer-to-Peer Electronic Cash System
Satoshi Nakamoto, 2008
... The network timestamps transactions by hashing them into an
ongoing chain of hash-based proof-of-work, forming a record that
cannot be changed without redoing the proof-of-work. The longest
chain not only serves as proof ... that it came from the largest pool
of CPU power. As long as a majority of CPU power is controlled
by nodes that are not cooperating to attack the network, they'll
generate the longest chain and outpace attackers.
https://www.flickr.com/photos/frankcarman/8192806771/
Consensus is a Zoo.
Proof-of-Work (I)
Difficulty demands leading zeros in the block header hash.
Nonce has to be guessed to achieve that.
This guessing is compute intensiv, so it is a proof of work.
Difficulty Nonce
................................
...
................................
...
Block Header
Proof-of-Work (I)
Sometimes several miners come with competing new blocks.
There are rules to direct the race towards the longest chain.
Finally, proof of work inhibits double spending of (U)TXOs.
Difficulty Nonce
................................
...
................................
...
Block Header
https://www.flickr.com/photos/isnapshot/12793650333/
https://www.flickr.com/photos/armydre2008/11076933333/
CPU GPU FGPA ASIC
https://www.flickr.com/photos/joannaboj/24709585266/
Nakamoto Consortium
Network Structure decentralized permissioned
Scalability 1000s nodes 10s nodes
Consensus Finality - +
Throughput - +
Latency - +
Power Consumption - +
Correctness Proof - +
Nakamoto Consensus vs. Consortium Consensus
Adapted from Marko Vukolic, IBM
Consortium
Hyperledger
PBFT
Nakamoto
Bitcoin
POW - Bitcoin
Nakamoto
Ethereum
POW - Ethhash
Proof-of-Stake (I)
... proof of stake can be described as a form of "virtual mining“ ...
Whereas proof of work relies on computer hardware as the primary form
of scarcity to prevent Sybil attacks, proof of stake relies on coins
inside of the blockchain itself.
In proof of work, a user might take $1000, use it to buy a mining
computer, plug it in and start participating in the network and producing
blocks and getting rewards,
in proof of stake, one could take $1000, convert it into $1000 worth of
coins, then deposit the coins into the proof of stake mechanism, which
would (pseudo-)randomly assign the owner the right to produce
blocks and get rewards.
https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ
Proof-of-Stake (II)
In general, a proof of stake algorithm looks as follows.
There exists some set of coin holders that place their coins into a proof
of stake mechanism and thereby become validators. Given a particular
blockchain "head" (ie. the latest block in a blockchain), the algorithm
randomly selects one of these validators (the randomness being
weighted by deposit size, so a validator with 10000 coins has 10x the
chance of a validator with 1000 coins) and assigns to them the right to
create the next block.
If that validator does not create a block within some period of time, then
a secondary validator is selected that can create the block instead. Just
like in proof of work, the "longest chain" is considered to be the
canonical one.
https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ
Consortium
Hyperledger
PBFT
Nakamoto
Bitcoin
POW - Bitcoin
?Nakamoto?
Ethereum
POS - Casper
Quantum Computing Impacts
Hashing
Signing
https://www.flickr.com/photos/matt_gibson/15273343947/
https://www.flickr.com/photos/intherough/3253349104/
Consensus is a core technology in digital infrastructures.
Bitcoin‘s Proof-of-Work scales to 1000s of nodes.
Etherum plans to adopt Proof-of-Stake very soon.
Decentralized Chains prefer PoW/PoS consensus.
Permissioned Chains prefer PBFT consensus.

More Related Content

PDF
Blockchain IoT Night / 25th Oct 2017
PDF
mozilla-things-fosdem-2019
PPTX
Resource slides for blockchain related question
PDF
Intro to Polkadot & Kusama
PPTX
Azure Unchained (Azure boot camp Sofia 2017)
PDF
IoT-javascript-2019-fosdem
PDF
Encode Club workshop slides
PDF
DevOpsTO meetup 2018-08
Blockchain IoT Night / 25th Oct 2017
mozilla-things-fosdem-2019
Resource slides for blockchain related question
Intro to Polkadot & Kusama
Azure Unchained (Azure boot camp Sofia 2017)
IoT-javascript-2019-fosdem
Encode Club workshop slides
DevOpsTO meetup 2018-08

What's hot (20)

PDF
Ethermint 2.0: An Ethereum Scaling Solution by Cosmos
PDF
Big Data Expo 2015 - SMT Ware The Age of Software Defined Business
PDF
Доклад разработчиков Exonum на третьем митапе сообщества блокчейн-разработчик...
PPTX
Blockchain technology
PDF
Tendermint/Cosmos: Many Chains, Many Tokens, One Ecosystem
PDF
Front-End Development for dApps on Tezos
PPTX
20190606 blockchain101
PDF
FIWARE Wednesday Webinars - Short Term History within Smart Systems
PPTX
Building an IoT Cloud for Healthcare: How to Solve Networking Challenges and ...
PDF
FIWARE Wednesday Webinars - How to Secure IoT Devices
PDF
Parity Progress Report
PDF
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
PPTX
FIWARE Wednesday Webinars - How to Debug IoT Agents
PPTX
How to detect side channel attacks in cloud infrastructures
PDF
Bletchley
PPTX
OpenStack 2016 - Boom or Bust? - Adrian Ionel, CEO, Mirantis - OpenStackSV 2014
PDF
POA based Side-Chain Architecture
PDF
Docker and kernel security
PDF
The Bitcoin Lightning Network
PDF
Applied Security for Containers, OW2con'18, June 7-8, 2018, Paris
 
Ethermint 2.0: An Ethereum Scaling Solution by Cosmos
Big Data Expo 2015 - SMT Ware The Age of Software Defined Business
Доклад разработчиков Exonum на третьем митапе сообщества блокчейн-разработчик...
Blockchain technology
Tendermint/Cosmos: Many Chains, Many Tokens, One Ecosystem
Front-End Development for dApps on Tezos
20190606 blockchain101
FIWARE Wednesday Webinars - Short Term History within Smart Systems
Building an IoT Cloud for Healthcare: How to Solve Networking Challenges and ...
FIWARE Wednesday Webinars - How to Secure IoT Devices
Parity Progress Report
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
FIWARE Wednesday Webinars - How to Debug IoT Agents
How to detect side channel attacks in cloud infrastructures
Bletchley
OpenStack 2016 - Boom or Bust? - Adrian Ionel, CEO, Mirantis - OpenStackSV 2014
POA based Side-Chain Architecture
Docker and kernel security
The Bitcoin Lightning Network
Applied Security for Containers, OW2con'18, June 7-8, 2018, Paris
 
Ad

Similar to Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017 (20)

PDF
Bitcoin- Technology beyond Politics
PDF
CRYPTOCURRENCY
PPTX
BlockChain for the Banker
PDF
Building on Gnosis Chain
PPTX
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
PPTX
BLOCKCHAIN PPT.pptx
PDF
Blockchain Technology Explained
PPTX
PPT
Demystifying Blockchain for businesses
PDF
Blockchain and Its Applications in the Real World
PPTX
Blockchain disruptive technology 2018
PPTX
Blockchain. A Guide For Beginners
PPTX
Down the Rabbit Hole - Dhruv Bansal, Refactor Camp 2018
PPTX
The Basic Theories of Blockchain
PDF
Bitcoin-full-report-STVM
PDF
Ethereum Mining How To
PPTX
3_How mining works _Byzantine_Fault_ToleranceBFT.pptx
PPTX
R1x g16 blockchain
PDF
Convergência de Tecnologias Disruptivas
DOCX
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Bitcoin- Technology beyond Politics
CRYPTOCURRENCY
BlockChain for the Banker
Building on Gnosis Chain
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
BLOCKCHAIN PPT.pptx
Blockchain Technology Explained
Demystifying Blockchain for businesses
Blockchain and Its Applications in the Real World
Blockchain disruptive technology 2018
Blockchain. A Guide For Beginners
Down the Rabbit Hole - Dhruv Bansal, Refactor Camp 2018
The Basic Theories of Blockchain
Bitcoin-full-report-STVM
Ethereum Mining How To
3_How mining works _Byzantine_Fault_ToleranceBFT.pptx
R1x g16 blockchain
Convergência de Tecnologias Disruptivas
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Ad

More from Lothar Wieske (14)

PDF
Innovation im Spannungsfeld des „Weg-Von“ und dem „Hin-Zu“ - 19/11/2019
PDF
Chaos Engineering Here We_Go
PDF
Digital Disruption
PDF
Jumping Jack Flash
PDF
Elastic Compute Cloud: Darf es noch ein Server mehr sein?
PDF
Amazon Web Services: Flaggschiff des Cloud Computings
PDF
Cloud Computing - Technology Radar 2015 / Apr 27th 2015
PDF
Cassandra – die NoSQL-Datenbank für große Mengen und schnelle Zugriffe
PDF
Dateisysteme und Datenbanken im Cloud Computing
PDF
Vom Utility Computing zum Cloud Computing
PDF
Organizational Patterns for Cloud Computing / Apr 7th 2014
PDF
Steps Towards Cloud Computing / Apr 9th 2013
PDF
Cloud Architecture + Cloud Architects / Jan 24th 2012
PDF
Cloud Computing im Unternehmen / Jan 25th 2011
Innovation im Spannungsfeld des „Weg-Von“ und dem „Hin-Zu“ - 19/11/2019
Chaos Engineering Here We_Go
Digital Disruption
Jumping Jack Flash
Elastic Compute Cloud: Darf es noch ein Server mehr sein?
Amazon Web Services: Flaggschiff des Cloud Computings
Cloud Computing - Technology Radar 2015 / Apr 27th 2015
Cassandra – die NoSQL-Datenbank für große Mengen und schnelle Zugriffe
Dateisysteme und Datenbanken im Cloud Computing
Vom Utility Computing zum Cloud Computing
Organizational Patterns for Cloud Computing / Apr 7th 2014
Steps Towards Cloud Computing / Apr 9th 2013
Cloud Architecture + Cloud Architects / Jan 24th 2012
Cloud Computing im Unternehmen / Jan 25th 2011

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
KodekX | Application Modernization Development
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
A Presentation on Artificial Intelligence
PDF
Modernizing your data center with Dell and AMD
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KodekX | Application Modernization Development
NewMind AI Weekly Chronicles - August'25 Week I
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
A Presentation on Artificial Intelligence
Modernizing your data center with Dell and AMD
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017