SlideShare a Scribd company logo
1 of 47
Download to read offline
Blockchain Technology
Week 11
Unit IV – Consensus Algorithms
Ferdin Joe John Joseph, PhD
Faculty of Information Technology
Thai-Nichi Institute of Technology, Bangkok
Venue: D603
Week 11 – Unit IV
Agenda
• Distributed System
• Voting Based Consensus
• Nakamoto Consensus
• Proof of Stake
• Federated Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
2
Distributed Systems
• Majority Oprinion
• General Agreement
Faculty of Information Technology, Thai-Nichi Institute of
Technology
3
Case: Digital Avionics
• Super dependable computers pioneered by aircraft manufacturers
• 100s of passengers and aircraft costs 100s of million usd
• Altitude, speed and fuel sensors
• Auto Pilot mode
Faculty of Information Technology, Thai-Nichi Institute of
Technology
4
Avionics Modules
• Reliability
• Trust without trust
• Solution: Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
5
Distributed Systems: Definition
• A set of independent nodes, each representing a “process”
• Message channels for information to move between nodes,
establishing a network
Faculty of Information Technology, Thai-Nichi Institute of
Technology
6
Distributed Systems
Faculty of Information Technology, Thai-Nichi Institute of
Technology
7
Distributed Systems: Properties
• Concurrent components
• No global clock
• Potential failure of individual components
Faculty of Information Technology, Thai-Nichi Institute of
Technology
8
Correctness
• Correctness of a distributed system: achieving its intended goal
• To ensure correctness, one uses a consensus algorithm achieving the
following: Validity, Agreement, and Termination
Faculty of Information Technology, Thai-Nichi Institute of
Technology
9
Correctness
• To ensure correctness, one uses a consensus algorithm achieving the
following:
• Validity: any value decided upon must be proposed by one of the
processes
• Agreement: all non-faulty processes must agree on the same value
Agreement and Validity are safety properties: Honest nodes will never
decide on trivial, random, or different values
• Termination: all non-faulty nodes eventually decide Termination is a
liveness property: All nodes eventually decide on a value
Faculty of Information Technology, Thai-Nichi Institute of
Technology
10
Week 11 – Unit IV
Agenda
• Distributed System
• Voting Based Consensus
• Nakamoto Consensus
• Proof of Stake
• Federated Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
11
Paxos
• Paxos is a Greek island
• Also a consensus algorithm
Faculty of Information Technology, Thai-Nichi Institute of
Technology
12
Paxon parliament
• Proposer: legislator, advocates a citizen's request, moves protocol
forward
• Acceptor: legislator, voter
• Learner: remembers and carries out result for citizen
• Quorum:
• any majority of Acceptors
• any two Quorums must overlap
Faculty of Information Technology, Thai-Nichi Institute of
Technology
13
Relevance
Paxon Parliament Distributed System
Legislator Server
Citizen Client Program
Current Law Database State
Faculty of Information Technology, Thai-Nichi Institute of
Technology
14
RAFT Algorithm
Raft is another consensus mechanism designed to be an alternative to
Paxos
• Designed to be more understandable than Paxos
• Leader-based approach
• Easier to implement
• JP Morgan’s Quorum: Raft-based consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
15
RAFT: Process
• A Raft cluster has one and only one elected leader
• Communicates with client directly
• Responsible for managing log replication on the other servers of the cluster
• Leads until it fails or disconnects, in which case a new leader is elected
Leader Election
• Leader sends “heartbeats” to other nodes saying that it is online
• If other nodes no longer receive “heartbeat,” they start an election cycle (and
internal timer)
• First candidate to timeout becomes new leader
Faculty of Information Technology, Thai-Nichi Institute of
Technology
16
RAFT: Process
Log Replication
• Leader accepts client request
• Leader ensures all other nodes have followed that request
Faculty of Information Technology, Thai-Nichi Institute of
Technology
17
Week 11 – Unit IV
Agenda
• Distributed System
• Voting Based Consensus
• Nakamoto Consensus
• Proof of Stake
• Federated Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
18
Nakamoto Consensus: Proof of Work (PoW)
• Elect leader through some “lottery”
• Leader creates next block
• Others vote implicitly by including block in their chain
Faculty of Information Technology, Thai-Nichi Institute of
Technology
19
Nakamoto Consensus
• What resources consumed: Computational Power
Faculty of Information Technology, Thai-Nichi Institute of
Technology
20
Nakamoto Consensus: Proof of Stake (PoS)
Overview:
• Validators instead of “miners”
• Locking up “stake”
Resource consumed: Native currency
Faculty of Information Technology, Thai-Nichi Institute of
Technology
21
Hybrid Nakamoto Consensus
PoW + PoS hybrid:
• PoW: Miners create blocks (with or without transactions, depending
on implementation); block header contains validator data
• PoS: Validators sign valid blocks
Resources: Both PoW and PoS
Faculty of Information Technology, Thai-Nichi Institute of
Technology
22
Proof of Burn
Overview:
• Send coins to irretrievable address
• More coins burned, higher likelihood of election
• Like Proof-of-Stake, but edgier
• Bootstrapping mechanism:
• Tie a coin’s value to some other coin (e.g. Bitcoin) by demonstrating that users
willingly burn Bitcoin to receive this other coin
Resources Consumed: Potentially not native currency
Faculty of Information Technology, Thai-Nichi Institute of
Technology
23
Proof of Space
Overview:
• Use disk space to solve challenge
• Nowadays used for file storage
• Variations on implementations: Let users receive coins after voting on
blocks (Also known as Proof-of-Capacity)
• Resource consumed: Storage space
Faculty of Information Technology, Thai-Nichi Institute of
Technology
24
Proof of Elapsed Time
Overview:
• Spend time instead of mining power
• Resource Consumed: Time
Faculty of Information Technology, Thai-Nichi Institute of
Technology
25
Proof of Authority
Overview:
• Permissioned, non-production
• Used in Kovan and Rinkeby Ethereum testnets
• Resource Consumed: Identity (Reputation)
Faculty of Information Technology, Thai-Nichi Institute of
Technology
26
Week 11 – Unit IV
Agenda
• Distributed System
• Voting Based Consensus
• Nakamoto Consensus
• Proof of Stake
• Federated Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
27
Proof of Stake
Faculty of Information Technology, Thai-Nichi Institute of
Technology
28
Chain Based PoS
Algorithm for Chain-based PoS:
1. Randomly choose a validator based on the proportional stake
invested from the group of already existing validators.
2. The chosen validator creates a block which points to some
previously created block.
3. The chosen validator gets the block reward and the
transaction fees
Faculty of Information Technology, Thai-Nichi Institute of
Technology
29
Byzantine Fault Tolerant PoS
Algorithm for Byzantine Fault Tolerant PoS:
1. Randomly choose a validator based on the proportional stake
invested from the group of already existing validators.
2. The chosen validator proposes a block
3. All the other validators vote yes if they think it is a valid block
4. If ⅔ or more voting power votes yes, the block is included in the
blockchain. Otherwise a new proposer is chosen and we go back to Step 1.
5. The chosen validator gets the block reward and the transaction
fees
Faculty of Information Technology, Thai-Nichi Institute of
Technology
30
Implementations
• Tendermint
• Cosmos
Faculty of Information Technology, Thai-Nichi Institute of
Technology
31
Week 11 – Unit IV
Agenda
• Distributed System
• Voting Based Consensus
• Nakamoto Consensus
• Proof of Stake
• Federated Consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
32
Byzantine Agreement
• In a distributed system, a quorum is a set of nodes sufficient to
reach agreement.
Faculty of Information Technology, Thai-Nichi Institute of
Technology
33
Case: Crayon
Faculty of Information Technology, Thai-Nichi Institute of
Technology
34
Case: Crayon
Faculty of Information Technology, Thai-Nichi Institute of
Technology
35
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
36
A B C
Wanna get
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
37
A B C
We prefer
Burger. Its $1
today!
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
38
A B C
Then I will opt
for burger too.
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
39
A B C
Can I Join too?
D
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
40
A B C
But I don’t
Trust A.
D
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
41
A B C
Don’t Worry!
We can form a
quorem slice.
D
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
42
A B C D
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
43
A B C
Can I join too?
DE
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
44
A B C
But I trust A
and B only.
DE
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
45
A B C
Sure. We can
for a quorem.
DE
Case: Lunch time consensus
Faculty of Information Technology, Thai-Nichi Institute of
Technology
46
A B C DE
Next Week
• Distributed Ledger Management
• Government Policies and Ethics in Blockchain usage
Faculty of Information Technology, Thai-Nichi Institute of
Technology
47

More Related Content

What's hot

Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in BlockchainBlockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in BlockchainFerdin Joe John Joseph PhD
 
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General ProblemBlockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General ProblemFerdin Joe John Joseph PhD
 
Blockchain Technology - Week 4 - Hyperledger and Smart Contracts
Blockchain Technology - Week 4 - Hyperledger and Smart ContractsBlockchain Technology - Week 4 - Hyperledger and Smart Contracts
Blockchain Technology - Week 4 - Hyperledger and Smart ContractsFerdin Joe John Joseph PhD
 
Blockchain Technology - Week 3 - FinTech and Cryptocurrencies
Blockchain Technology - Week 3 - FinTech and CryptocurrenciesBlockchain Technology - Week 3 - FinTech and Cryptocurrencies
Blockchain Technology - Week 3 - FinTech and CryptocurrenciesFerdin Joe John Joseph PhD
 
Blockchain Technology - Week 1 - Introduction to Blockchain
Blockchain Technology - Week 1 - Introduction to BlockchainBlockchain Technology - Week 1 - Introduction to Blockchain
Blockchain Technology - Week 1 - Introduction to BlockchainFerdin Joe John Joseph PhD
 
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Week 2: Virtualization and VM Ware - DSA 441 Cloud ComputingWeek 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Week 2: Virtualization and VM Ware - DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud ComputingWeek 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud ComputingWeek 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Week 1: Introduction to Cloud Computing - DSA 441 Cloud ComputingWeek 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Week 1: Introduction to Cloud Computing - DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 11: Cloud Native- DSA 441 Cloud Computing
Week 11: Cloud Native- DSA 441 Cloud ComputingWeek 11: Cloud Native- DSA 441 Cloud Computing
Week 11: Cloud Native- DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Introduction to Blockchain Business Models
Introduction to Blockchain Business ModelsIntroduction to Blockchain Business Models
Introduction to Blockchain Business ModelsGokul Alex
 

What's hot (20)

Week 11: Programming for Data Analysis
Week 11: Programming for Data AnalysisWeek 11: Programming for Data Analysis
Week 11: Programming for Data Analysis
 
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in BlockchainBlockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
 
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General ProblemBlockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
Blockchain Technology - Week 10 - CAP Teorem, Byzantines General Problem
 
Programming for Data Analysis: Week 4
Programming for Data Analysis: Week 4Programming for Data Analysis: Week 4
Programming for Data Analysis: Week 4
 
Blockchain Technology - Week 4 - Hyperledger and Smart Contracts
Blockchain Technology - Week 4 - Hyperledger and Smart ContractsBlockchain Technology - Week 4 - Hyperledger and Smart Contracts
Blockchain Technology - Week 4 - Hyperledger and Smart Contracts
 
Week 9: Programming for Data Analysis
Week 9: Programming for Data AnalysisWeek 9: Programming for Data Analysis
Week 9: Programming for Data Analysis
 
Data Wrangling Week 4
Data Wrangling Week 4Data Wrangling Week 4
Data Wrangling Week 4
 
Data wrangling week 10
Data wrangling week 10Data wrangling week 10
Data wrangling week 10
 
Blockchain Technology - Week 3 - FinTech and Cryptocurrencies
Blockchain Technology - Week 3 - FinTech and CryptocurrenciesBlockchain Technology - Week 3 - FinTech and Cryptocurrencies
Blockchain Technology - Week 3 - FinTech and Cryptocurrencies
 
Data wrangling week3
Data wrangling week3Data wrangling week3
Data wrangling week3
 
Blockchain Technology - Week 1 - Introduction to Blockchain
Blockchain Technology - Week 1 - Introduction to BlockchainBlockchain Technology - Week 1 - Introduction to Blockchain
Blockchain Technology - Week 1 - Introduction to Blockchain
 
Data wrangling week2
Data wrangling week2Data wrangling week2
Data wrangling week2
 
Data wrangling week 6
Data wrangling week 6Data wrangling week 6
Data wrangling week 6
 
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Week 2: Virtualization and VM Ware - DSA 441 Cloud ComputingWeek 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
 
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud ComputingWeek 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
 
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud ComputingWeek 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
 
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Week 1: Introduction to Cloud Computing - DSA 441 Cloud ComputingWeek 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
 
Week 11: Cloud Native- DSA 441 Cloud Computing
Week 11: Cloud Native- DSA 441 Cloud ComputingWeek 11: Cloud Native- DSA 441 Cloud Computing
Week 11: Cloud Native- DSA 441 Cloud Computing
 
Introduction to Blockchain Business Models
Introduction to Blockchain Business ModelsIntroduction to Blockchain Business Models
Introduction to Blockchain Business Models
 
Week 12: Cloud AI- DSA 441 Cloud Computing
Week 12: Cloud AI- DSA 441 Cloud ComputingWeek 12: Cloud AI- DSA 441 Cloud Computing
Week 12: Cloud AI- DSA 441 Cloud Computing
 

Similar to Blockchain Technology - Week 11 - Thai-Nichi Institute of Technology

IP Considerations for Blockchain Technology
IP Considerations for Blockchain TechnologyIP Considerations for Blockchain Technology
IP Considerations for Blockchain TechnologyNelson Rosario
 
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithmFair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithmTELKOMNIKA JOURNAL
 
From Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsFrom Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsRaffaele Mauro
 
Blockchain and Services – Exploring the Links
Blockchain and Services – Exploring the LinksBlockchain and Services – Exploring the Links
Blockchain and Services – Exploring the LinksIngo Weber
 
Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Jeff Garzik
 
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...TheAnfieldGroup
 
Blockchain: No Thunder No Wonder
Blockchain: No Thunder No Wonder  Blockchain: No Thunder No Wonder
Blockchain: No Thunder No Wonder Ali Al-Sherbaz
 
On Engineering Economic Systems
On Engineering Economic SystemsOn Engineering Economic Systems
On Engineering Economic SystemsMichael Zargham
 
Introduction to Blockchain Governance Models
Introduction to Blockchain Governance ModelsIntroduction to Blockchain Governance Models
Introduction to Blockchain Governance ModelsGokul Alex
 
set zeroth review blockchain electoral system.pdf
set zeroth review blockchain electoral system.pdfset zeroth review blockchain electoral system.pdf
set zeroth review blockchain electoral system.pdfSudamaSharma7
 
Blockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial ServicesBlockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial ServicesRatnakar Pandey
 
Icsa2018 blockchain tutorial
Icsa2018 blockchain tutorialIcsa2018 blockchain tutorial
Icsa2018 blockchain tutorialLen Bass
 
TEC 7 Meeting September 2013
TEC 7 Meeting September 2013TEC 7 Meeting September 2013
TEC 7 Meeting September 2013Arthur Lee
 
Blockchain vision
Blockchain visionBlockchain vision
Blockchain visionCyber Fund
 
Faculty Development Programme: St Peters Engineering College
Faculty Development Programme: St Peters Engineering CollegeFaculty Development Programme: St Peters Engineering College
Faculty Development Programme: St Peters Engineering CollegeFerdin Joe John Joseph PhD
 

Similar to Blockchain Technology - Week 11 - Thai-Nichi Institute of Technology (20)

Newbies Approach to Blockchain Technology
Newbies Approach to Blockchain TechnologyNewbies Approach to Blockchain Technology
Newbies Approach to Blockchain Technology
 
IP Considerations for Blockchain Technology
IP Considerations for Blockchain TechnologyIP Considerations for Blockchain Technology
IP Considerations for Blockchain Technology
 
Webinar: Blockchain Beyond Cryptocurrencies
Webinar: Blockchain Beyond CryptocurrenciesWebinar: Blockchain Beyond Cryptocurrencies
Webinar: Blockchain Beyond Cryptocurrencies
 
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithmFair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
Fair and trustworthy: Lock-free enhanced tendermint blockchain algorithm
 
From Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsFrom Cryptoequity to Cryptocommons
From Cryptoequity to Cryptocommons
 
Blockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computingBlockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computing
 
Blockchain and Services – Exploring the Links
Blockchain and Services – Exploring the LinksBlockchain and Services – Exploring the Links
Blockchain and Services – Exploring the Links
 
Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017
 
LBSNov2.pptx
LBSNov2.pptxLBSNov2.pptx
LBSNov2.pptx
 
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...
Regulators’ Role in Smart Grid Security: What They Want to Know by Alan Rival...
 
Blockchain: No Thunder No Wonder
Blockchain: No Thunder No Wonder  Blockchain: No Thunder No Wonder
Blockchain: No Thunder No Wonder
 
On Engineering Economic Systems
On Engineering Economic SystemsOn Engineering Economic Systems
On Engineering Economic Systems
 
Introduction to Blockchain Governance Models
Introduction to Blockchain Governance ModelsIntroduction to Blockchain Governance Models
Introduction to Blockchain Governance Models
 
set zeroth review blockchain electoral system.pdf
set zeroth review blockchain electoral system.pdfset zeroth review blockchain electoral system.pdf
set zeroth review blockchain electoral system.pdf
 
Blockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial ServicesBlockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial Services
 
Icsa2018 blockchain tutorial
Icsa2018 blockchain tutorialIcsa2018 blockchain tutorial
Icsa2018 blockchain tutorial
 
TEC 7 Meeting September 2013
TEC 7 Meeting September 2013TEC 7 Meeting September 2013
TEC 7 Meeting September 2013
 
Blockchain Vision
Blockchain VisionBlockchain Vision
Blockchain Vision
 
Blockchain vision
Blockchain visionBlockchain vision
Blockchain vision
 
Faculty Development Programme: St Peters Engineering College
Faculty Development Programme: St Peters Engineering CollegeFaculty Development Programme: St Peters Engineering College
Faculty Development Programme: St Peters Engineering College
 

More from Ferdin Joe John Joseph PhD

Week 10: Cloud Security- DSA 441 Cloud Computing
Week 10: Cloud Security- DSA 441 Cloud ComputingWeek 10: Cloud Security- DSA 441 Cloud Computing
Week 10: Cloud Security- DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...Ferdin Joe John Joseph PhD
 
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...Ferdin Joe John Joseph PhD
 
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud ComputingWeek 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud ComputingFerdin Joe John Joseph PhD
 
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...Ferdin Joe John Joseph PhD
 
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculumSept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculumFerdin Joe John Joseph PhD
 
Transforming deep into transformers – a computer vision approach
Transforming deep into transformers – a computer vision approachTransforming deep into transformers – a computer vision approach
Transforming deep into transformers – a computer vision approachFerdin Joe John Joseph PhD
 

More from Ferdin Joe John Joseph PhD (15)

Invited Talk DGTiCon 2022
Invited Talk DGTiCon 2022Invited Talk DGTiCon 2022
Invited Talk DGTiCon 2022
 
Week 10: Cloud Security- DSA 441 Cloud Computing
Week 10: Cloud Security- DSA 441 Cloud ComputingWeek 10: Cloud Security- DSA 441 Cloud Computing
Week 10: Cloud Security- DSA 441 Cloud Computing
 
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
 
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
 
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud ComputingWeek 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
 
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
 
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculumSept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
 
Hadoop in Alibaba Cloud
Hadoop in Alibaba CloudHadoop in Alibaba Cloud
Hadoop in Alibaba Cloud
 
Cloud Computing Essentials in Alibaba Cloud
Cloud Computing Essentials in Alibaba CloudCloud Computing Essentials in Alibaba Cloud
Cloud Computing Essentials in Alibaba Cloud
 
Transforming deep into transformers – a computer vision approach
Transforming deep into transformers – a computer vision approachTransforming deep into transformers – a computer vision approach
Transforming deep into transformers – a computer vision approach
 
Deep learning - Introduction
Deep learning - IntroductionDeep learning - Introduction
Deep learning - Introduction
 
Data wrangling week 11
Data wrangling week 11Data wrangling week 11
Data wrangling week 11
 
Data wrangling week 9
Data wrangling week 9Data wrangling week 9
Data wrangling week 9
 
Data Wrangling Week 7
Data Wrangling Week 7Data Wrangling Week 7
Data Wrangling Week 7
 
Deep Learning and CNN Architectures
Deep Learning and CNN ArchitecturesDeep Learning and CNN Architectures
Deep Learning and CNN Architectures
 

Recently uploaded

Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 

Recently uploaded (20)

Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 

Blockchain Technology - Week 11 - Thai-Nichi Institute of Technology

  • 1. Blockchain Technology Week 11 Unit IV – Consensus Algorithms Ferdin Joe John Joseph, PhD Faculty of Information Technology Thai-Nichi Institute of Technology, Bangkok Venue: D603
  • 2. Week 11 – Unit IV Agenda • Distributed System • Voting Based Consensus • Nakamoto Consensus • Proof of Stake • Federated Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 2
  • 3. Distributed Systems • Majority Oprinion • General Agreement Faculty of Information Technology, Thai-Nichi Institute of Technology 3
  • 4. Case: Digital Avionics • Super dependable computers pioneered by aircraft manufacturers • 100s of passengers and aircraft costs 100s of million usd • Altitude, speed and fuel sensors • Auto Pilot mode Faculty of Information Technology, Thai-Nichi Institute of Technology 4
  • 5. Avionics Modules • Reliability • Trust without trust • Solution: Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 5
  • 6. Distributed Systems: Definition • A set of independent nodes, each representing a “process” • Message channels for information to move between nodes, establishing a network Faculty of Information Technology, Thai-Nichi Institute of Technology 6
  • 7. Distributed Systems Faculty of Information Technology, Thai-Nichi Institute of Technology 7
  • 8. Distributed Systems: Properties • Concurrent components • No global clock • Potential failure of individual components Faculty of Information Technology, Thai-Nichi Institute of Technology 8
  • 9. Correctness • Correctness of a distributed system: achieving its intended goal • To ensure correctness, one uses a consensus algorithm achieving the following: Validity, Agreement, and Termination Faculty of Information Technology, Thai-Nichi Institute of Technology 9
  • 10. Correctness • To ensure correctness, one uses a consensus algorithm achieving the following: • Validity: any value decided upon must be proposed by one of the processes • Agreement: all non-faulty processes must agree on the same value Agreement and Validity are safety properties: Honest nodes will never decide on trivial, random, or different values • Termination: all non-faulty nodes eventually decide Termination is a liveness property: All nodes eventually decide on a value Faculty of Information Technology, Thai-Nichi Institute of Technology 10
  • 11. Week 11 – Unit IV Agenda • Distributed System • Voting Based Consensus • Nakamoto Consensus • Proof of Stake • Federated Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 11
  • 12. Paxos • Paxos is a Greek island • Also a consensus algorithm Faculty of Information Technology, Thai-Nichi Institute of Technology 12
  • 13. Paxon parliament • Proposer: legislator, advocates a citizen's request, moves protocol forward • Acceptor: legislator, voter • Learner: remembers and carries out result for citizen • Quorum: • any majority of Acceptors • any two Quorums must overlap Faculty of Information Technology, Thai-Nichi Institute of Technology 13
  • 14. Relevance Paxon Parliament Distributed System Legislator Server Citizen Client Program Current Law Database State Faculty of Information Technology, Thai-Nichi Institute of Technology 14
  • 15. RAFT Algorithm Raft is another consensus mechanism designed to be an alternative to Paxos • Designed to be more understandable than Paxos • Leader-based approach • Easier to implement • JP Morgan’s Quorum: Raft-based consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 15
  • 16. RAFT: Process • A Raft cluster has one and only one elected leader • Communicates with client directly • Responsible for managing log replication on the other servers of the cluster • Leads until it fails or disconnects, in which case a new leader is elected Leader Election • Leader sends “heartbeats” to other nodes saying that it is online • If other nodes no longer receive “heartbeat,” they start an election cycle (and internal timer) • First candidate to timeout becomes new leader Faculty of Information Technology, Thai-Nichi Institute of Technology 16
  • 17. RAFT: Process Log Replication • Leader accepts client request • Leader ensures all other nodes have followed that request Faculty of Information Technology, Thai-Nichi Institute of Technology 17
  • 18. Week 11 – Unit IV Agenda • Distributed System • Voting Based Consensus • Nakamoto Consensus • Proof of Stake • Federated Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 18
  • 19. Nakamoto Consensus: Proof of Work (PoW) • Elect leader through some “lottery” • Leader creates next block • Others vote implicitly by including block in their chain Faculty of Information Technology, Thai-Nichi Institute of Technology 19
  • 20. Nakamoto Consensus • What resources consumed: Computational Power Faculty of Information Technology, Thai-Nichi Institute of Technology 20
  • 21. Nakamoto Consensus: Proof of Stake (PoS) Overview: • Validators instead of “miners” • Locking up “stake” Resource consumed: Native currency Faculty of Information Technology, Thai-Nichi Institute of Technology 21
  • 22. Hybrid Nakamoto Consensus PoW + PoS hybrid: • PoW: Miners create blocks (with or without transactions, depending on implementation); block header contains validator data • PoS: Validators sign valid blocks Resources: Both PoW and PoS Faculty of Information Technology, Thai-Nichi Institute of Technology 22
  • 23. Proof of Burn Overview: • Send coins to irretrievable address • More coins burned, higher likelihood of election • Like Proof-of-Stake, but edgier • Bootstrapping mechanism: • Tie a coin’s value to some other coin (e.g. Bitcoin) by demonstrating that users willingly burn Bitcoin to receive this other coin Resources Consumed: Potentially not native currency Faculty of Information Technology, Thai-Nichi Institute of Technology 23
  • 24. Proof of Space Overview: • Use disk space to solve challenge • Nowadays used for file storage • Variations on implementations: Let users receive coins after voting on blocks (Also known as Proof-of-Capacity) • Resource consumed: Storage space Faculty of Information Technology, Thai-Nichi Institute of Technology 24
  • 25. Proof of Elapsed Time Overview: • Spend time instead of mining power • Resource Consumed: Time Faculty of Information Technology, Thai-Nichi Institute of Technology 25
  • 26. Proof of Authority Overview: • Permissioned, non-production • Used in Kovan and Rinkeby Ethereum testnets • Resource Consumed: Identity (Reputation) Faculty of Information Technology, Thai-Nichi Institute of Technology 26
  • 27. Week 11 – Unit IV Agenda • Distributed System • Voting Based Consensus • Nakamoto Consensus • Proof of Stake • Federated Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 27
  • 28. Proof of Stake Faculty of Information Technology, Thai-Nichi Institute of Technology 28
  • 29. Chain Based PoS Algorithm for Chain-based PoS: 1. Randomly choose a validator based on the proportional stake invested from the group of already existing validators. 2. The chosen validator creates a block which points to some previously created block. 3. The chosen validator gets the block reward and the transaction fees Faculty of Information Technology, Thai-Nichi Institute of Technology 29
  • 30. Byzantine Fault Tolerant PoS Algorithm for Byzantine Fault Tolerant PoS: 1. Randomly choose a validator based on the proportional stake invested from the group of already existing validators. 2. The chosen validator proposes a block 3. All the other validators vote yes if they think it is a valid block 4. If ⅔ or more voting power votes yes, the block is included in the blockchain. Otherwise a new proposer is chosen and we go back to Step 1. 5. The chosen validator gets the block reward and the transaction fees Faculty of Information Technology, Thai-Nichi Institute of Technology 30
  • 31. Implementations • Tendermint • Cosmos Faculty of Information Technology, Thai-Nichi Institute of Technology 31
  • 32. Week 11 – Unit IV Agenda • Distributed System • Voting Based Consensus • Nakamoto Consensus • Proof of Stake • Federated Consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 32
  • 33. Byzantine Agreement • In a distributed system, a quorum is a set of nodes sufficient to reach agreement. Faculty of Information Technology, Thai-Nichi Institute of Technology 33
  • 34. Case: Crayon Faculty of Information Technology, Thai-Nichi Institute of Technology 34
  • 35. Case: Crayon Faculty of Information Technology, Thai-Nichi Institute of Technology 35
  • 36. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 36 A B C Wanna get
  • 37. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 37 A B C We prefer Burger. Its $1 today!
  • 38. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 38 A B C Then I will opt for burger too.
  • 39. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 39 A B C Can I Join too? D
  • 40. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 40 A B C But I don’t Trust A. D
  • 41. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 41 A B C Don’t Worry! We can form a quorem slice. D
  • 42. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 42 A B C D
  • 43. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 43 A B C Can I join too? DE
  • 44. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 44 A B C But I trust A and B only. DE
  • 45. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 45 A B C Sure. We can for a quorem. DE
  • 46. Case: Lunch time consensus Faculty of Information Technology, Thai-Nichi Institute of Technology 46 A B C DE
  • 47. Next Week • Distributed Ledger Management • Government Policies and Ethics in Blockchain usage Faculty of Information Technology, Thai-Nichi Institute of Technology 47