SlideShare a Scribd company logo
1 of 10
Consensus Models
Barry O’Connor
9th April 2018
When?
1. Permissionless Blockchains
2. Permissioned Blockchains
1. A dynamic way of reaching agreement in a group
2. Not voting – majority rule
3. Consensus – for the good of the group
What?
1. Agreement Seeking: As much agreement from the group as possible.
2. Collaborative: Aim to work together to achieve a result that puts the
best interest of the group first.
3. Cooperative: Should not put their own interests first and work as a team
more than individuals.
4. Egalitarian: A group trying to achieve consensus should be as egalitarian
as possible.
5. Inclusive: As many people as possible should be involved in the
consensus process.
6. Participatory: It should be such that everyone should actively participate
in the the overall process.
Byzantine Generals Problem(BGP)
1. A General
2. His lieutenants
3. Traitors
• The generals are collectively known as processes.
• The general who initiates the order is the source process, and the orders sent to the other processes are messages.
• Traitorous generals and lieutenants are faulty processes, and loyal generals and lieutenants are correct processes.
• The order to retreat or attack is a message with a 1 or 0.
• In general, a solution to agreement problems must pass three tests: termination, agreement, and validity. As applied to the
Byzantine General's problem, these three tests are:
1. A solution has to guarantee that all correct processes eventually reach a decision regarding the value of the order they have
been given.
2. All correct processes have to decide on the same value of the order they have been given.
3. If the source process is a correct process, all processes have to decide on the value that was originally given by the source
process.
https://people.eecs.berkeley.edu/~luca/cs174/byzantine.pdf
How do you solve it?
1.Proof for work
2.Proof of stake
3.Delegated proof of stake
4.Delegated Byzantine fault tolerance
1. Proof of work
BGP
1. “Attack tonight”
2. Add a NONCE to the text – a random hex
3. They hash the text with the nonce and see the result. They only
decide to share messages that start with “00000”.
4. If the hash is met, they send the messages. If not, they will
randomly change the nonce until the hash works.
5. If it is intercepted and changed, a general can look for the 00000.
This is BTC Mining using cryptographic puzzles.
2. Proof of stake
1. The validators lock up some of their coins as stake.
2. After that, they will start validating the blocks.
• Meaning, when they discover a block which they think can be added to the
chain, they will validate it by placing a bet on it.
3. Validators take turns proposing and voting on the next block.
4. If the block gets appended to the chain, then the validators will get
a reward proportionate to their bets.
Ethereum is moving to this model with Casper.
3. Delegated proof of stake
1. At the start of every round, 21 block producers(Witnesses) are chosen.
• Top 20 are automatically chosen while the 21st one is chosen proportional to the
number of their votes relative to the other producers.
2. The producers are then shuffled around using a pseudorandom number
derived from the block time.
• This is done to ensure that a balance connectivity to all other producers is
maintained.
3. To ensure that regular block production is maintained and that block
time is kept to 3 seconds, producers are punished for not participating by
being removed from consideration.
4. A producer has to produce at least one block every 24 hours to be in
consideration.
EOS is using this to scale up to millions of TPS
4. Delegated Byzantine fault tolerance
1. One of the delegates is randomly chosen as a speaker.
1. The Speaker then look at all the demands of the citizens and creates a law.
2. They then calculate a “Happiness Factor” of these laws to see if the number is enough to
satisfy the citizen’s needs or not.
3. They then pass that down to the delegates.
2. The delegates then individually check the Speaker’s calculations.
1. If the the speaker’s number matches the Delegate’s then they give their approval, if not
then they give their disapproval.
2. 66% of the delegates need to give their approval for the law to pass.
3. If the majority is not sealed, then a new leader is chosen and the process starts
again.
4. The citizens are whoever owns tokens aka ordinary nodes.
5. Delegates are the bookkeeping nodes.
The NEO network uses this model
Thank you.

More Related Content

Similar to Consensus models April 2018

ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptx
ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptxALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptx
ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptxAman298462
 
Writing A Policy Paper. How To Write A Policy Brief
Writing A Policy Paper. How To Write A Policy BriefWriting A Policy Paper. How To Write A Policy Brief
Writing A Policy Paper. How To Write A Policy BriefKimberly Pulley
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemorySHIKHA GAUTAM
 
Free Example Short Story Essay
Free Example Short Story EssayFree Example Short Story Essay
Free Example Short Story EssayRosita Cipriano
 
Environment Day Essay In Punjabi. Online assignment writing service.
Environment Day Essay In Punjabi. Online assignment writing service.Environment Day Essay In Punjabi. Online assignment writing service.
Environment Day Essay In Punjabi. Online assignment writing service.Courtney Hurst
 
Mexico Economy Essay
Mexico Economy EssayMexico Economy Essay
Mexico Economy EssayLaurel Connor
 
Blockchain consensus algorithms
Blockchain consensus algorithmsBlockchain consensus algorithms
Blockchain consensus algorithmsAnurag Dashputre
 
Cover Page For Essay - The Writing Center.
Cover Page For Essay - The Writing Center.Cover Page For Essay - The Writing Center.
Cover Page For Essay - The Writing Center.Becki Roy
 
Ivy League Personal Statement Examples - Sanox
Ivy League Personal Statement Examples - SanoxIvy League Personal Statement Examples - Sanox
Ivy League Personal Statement Examples - SanoxElizabeth Kennedy
 
How a bill becomes a law
How a bill becomes a lawHow a bill becomes a law
How a bill becomes a lawSioux Washburn
 
Free Printable Lined Paper For Letter Writing - Get Wh
Free Printable Lined Paper For Letter Writing - Get WhFree Printable Lined Paper For Letter Writing - Get Wh
Free Printable Lined Paper For Letter Writing - Get WhJennifer Campbell
 
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.ai
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.aiAnti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.ai
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.aiSri Ambati
 

Similar to Consensus models April 2018 (13)

ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptx
ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptxALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptx
ALTERNATIVE DISPUTE RESOLUTION - BBA LLB 5th Year.pptx
 
Writing A Policy Paper. How To Write A Policy Brief
Writing A Policy Paper. How To Write A Policy BriefWriting A Policy Paper. How To Write A Policy Brief
Writing A Policy Paper. How To Write A Policy Brief
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
 
Free Example Short Story Essay
Free Example Short Story EssayFree Example Short Story Essay
Free Example Short Story Essay
 
Environment Day Essay In Punjabi. Online assignment writing service.
Environment Day Essay In Punjabi. Online assignment writing service.Environment Day Essay In Punjabi. Online assignment writing service.
Environment Day Essay In Punjabi. Online assignment writing service.
 
Mexico Economy Essay
Mexico Economy EssayMexico Economy Essay
Mexico Economy Essay
 
Blockchain consensus algorithms
Blockchain consensus algorithmsBlockchain consensus algorithms
Blockchain consensus algorithms
 
Cover Page For Essay - The Writing Center.
Cover Page For Essay - The Writing Center.Cover Page For Essay - The Writing Center.
Cover Page For Essay - The Writing Center.
 
Ivy League Personal Statement Examples - Sanox
Ivy League Personal Statement Examples - SanoxIvy League Personal Statement Examples - Sanox
Ivy League Personal Statement Examples - Sanox
 
How a bill becomes a law
How a bill becomes a lawHow a bill becomes a law
How a bill becomes a law
 
Free Printable Lined Paper For Letter Writing - Get Wh
Free Printable Lined Paper For Letter Writing - Get WhFree Printable Lined Paper For Letter Writing - Get Wh
Free Printable Lined Paper For Letter Writing - Get Wh
 
011110 Econ Free Markets 50m
011110 Econ Free Markets 50m011110 Econ Free Markets 50m
011110 Econ Free Markets 50m
 
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.ai
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.aiAnti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.ai
Anti-Money Laundering - Ashrith Barthur, Security Scientist, H2O.ai
 

Recently uploaded

8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesKeppelCorporation
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 

Recently uploaded (20)

8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation Slides
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 

Consensus models April 2018

  • 2. When? 1. Permissionless Blockchains 2. Permissioned Blockchains 1. A dynamic way of reaching agreement in a group 2. Not voting – majority rule 3. Consensus – for the good of the group
  • 3. What? 1. Agreement Seeking: As much agreement from the group as possible. 2. Collaborative: Aim to work together to achieve a result that puts the best interest of the group first. 3. Cooperative: Should not put their own interests first and work as a team more than individuals. 4. Egalitarian: A group trying to achieve consensus should be as egalitarian as possible. 5. Inclusive: As many people as possible should be involved in the consensus process. 6. Participatory: It should be such that everyone should actively participate in the the overall process.
  • 4. Byzantine Generals Problem(BGP) 1. A General 2. His lieutenants 3. Traitors • The generals are collectively known as processes. • The general who initiates the order is the source process, and the orders sent to the other processes are messages. • Traitorous generals and lieutenants are faulty processes, and loyal generals and lieutenants are correct processes. • The order to retreat or attack is a message with a 1 or 0. • In general, a solution to agreement problems must pass three tests: termination, agreement, and validity. As applied to the Byzantine General's problem, these three tests are: 1. A solution has to guarantee that all correct processes eventually reach a decision regarding the value of the order they have been given. 2. All correct processes have to decide on the same value of the order they have been given. 3. If the source process is a correct process, all processes have to decide on the value that was originally given by the source process. https://people.eecs.berkeley.edu/~luca/cs174/byzantine.pdf
  • 5. How do you solve it? 1.Proof for work 2.Proof of stake 3.Delegated proof of stake 4.Delegated Byzantine fault tolerance
  • 6. 1. Proof of work BGP 1. “Attack tonight” 2. Add a NONCE to the text – a random hex 3. They hash the text with the nonce and see the result. They only decide to share messages that start with “00000”. 4. If the hash is met, they send the messages. If not, they will randomly change the nonce until the hash works. 5. If it is intercepted and changed, a general can look for the 00000. This is BTC Mining using cryptographic puzzles.
  • 7. 2. Proof of stake 1. The validators lock up some of their coins as stake. 2. After that, they will start validating the blocks. • Meaning, when they discover a block which they think can be added to the chain, they will validate it by placing a bet on it. 3. Validators take turns proposing and voting on the next block. 4. If the block gets appended to the chain, then the validators will get a reward proportionate to their bets. Ethereum is moving to this model with Casper.
  • 8. 3. Delegated proof of stake 1. At the start of every round, 21 block producers(Witnesses) are chosen. • Top 20 are automatically chosen while the 21st one is chosen proportional to the number of their votes relative to the other producers. 2. The producers are then shuffled around using a pseudorandom number derived from the block time. • This is done to ensure that a balance connectivity to all other producers is maintained. 3. To ensure that regular block production is maintained and that block time is kept to 3 seconds, producers are punished for not participating by being removed from consideration. 4. A producer has to produce at least one block every 24 hours to be in consideration. EOS is using this to scale up to millions of TPS
  • 9. 4. Delegated Byzantine fault tolerance 1. One of the delegates is randomly chosen as a speaker. 1. The Speaker then look at all the demands of the citizens and creates a law. 2. They then calculate a “Happiness Factor” of these laws to see if the number is enough to satisfy the citizen’s needs or not. 3. They then pass that down to the delegates. 2. The delegates then individually check the Speaker’s calculations. 1. If the the speaker’s number matches the Delegate’s then they give their approval, if not then they give their disapproval. 2. 66% of the delegates need to give their approval for the law to pass. 3. If the majority is not sealed, then a new leader is chosen and the process starts again. 4. The citizens are whoever owns tokens aka ordinary nodes. 5. Delegates are the bookkeeping nodes. The NEO network uses this model