SlideShare a Scribd company logo
1 of 109
COSMOS
Proof-of-Stake
Sunny Aggarwal - Tendermint & Cosmos
Tendermint BFT
• 1 Block Finality
• Requires +2/3 of the validator set
to sign on a block to commit
• Proposer changes every round
• Doesn’t scale as # of validators
increases
Why Proof of Stake?
Basics of Proof of Stake
Slashing
Unbonding
Out of Band Delegation
Out of Protocol
Out of Protocol
Out of Protocol
Out of Protocol
Out of Protocol
Out of Protocol
Out of Protocol
Delegation in Protocol
Delegation Criteria
Delegators will choose validators
off of criteria such as:
• Validator track record
• Validator’s security setup
• Self-declared, protocol-
enforced minimum self-bond
• Commission rate on
fees/rewards
Classical Redelegation
Instant Redelegation
Delegation Commitments
Incentives
Rewards
• Atoms are just a staking token for the Cosmos
Hub
• Staking tokens are similar to ASICs
• Capital you need in order to be able to be a
validator, and thus earn transaction fees
Staking Token
• Governance can maintains a whitelist of fee tokens
• Each validator maintains a local relative weighting
of values of the different whitelisted tokens
• Validators can choose to order transactions based
on this ordering.
• Can also require these to be submitted to the chain
in order to enforce a global min fee (using the
median)
Atom: 5
Photon: 3
BTC: 5000
ETH: 0.2
DAI: 1
Multi Fee Tokens
• Inflation schedule is designed to encourage staking
(the lower the percentage of staked atoms, the higher
the inflation rate)
• Block rewards split amongst all staked validators
• Block rewards start off unbonded
Block Rewards
• Majority of collected fees gets
split amongst the validators
• Proposer gets a special
dedicated percentage in order
to incentivize them to not
produce empty blocks
Proposer
5%
Split amongst all
validators
95%
Transaction Fees
Proposer Reward
𝑃 = 0.01 + 0.02 ∗ 𝑆 + 0.02 (0.9 𝑅
)
𝑃 = Proposers dedicated percentage
𝑆 = Percentage of stake whose precommits from
previous block were included in the proposal
𝑅 = Round number that a proposal was first proposed
Proposer Reward
• Passive Accounting to avoid iterating over the
entire set of stakers every block
• Transaction Fees and block rewards are added to a
pool
• Shares in the pool are distributed to validators, who
themselves have shares distributed to delegators
• Validators can charge commission rate on
Distribution
Punishments
Liveness Slashing
= Signed
= Unsigned
= Signed
= Unsigned
3/5
= Signed
= Unsigned
3/5
= Signed
= Unsigned
3/5
= Signed
= Unsigned
4/5
= Signed
= Unsigned
3/5
= Signed
= Unsigned
2/5
= Signed
= Unsigned
Liveness Slashing
• Validator gets a slight slash and is automatically
put in an jail period of 2 days
• After a jail period (2 days) the validator can
choose to rebond
• Unless delegators redelegated or unbonded, they
will be delegated to the validator when he gets
out of jail
• The jail period time gets credited to the
unbonding period, for both validator operators
and delegators
Byzantine Slashing
Consensus Fault Slashing
• The consensus engine tracks and generates
evidence for BFT faults
• Double signing on a block
• Breaking a Tendermint locking condition
• Signing a block while you’re in the
unbonding period
• There can be a delay between the time an
infraction occurs and the time that evidence
is found
Consensus Fault Slashing
• At time of evidence, the validator is slashed and
killed.
• A killed validator has all of his delegators
unbonded and the validator cannot revive itself
• Only the worst slash infraction is tracked
• Compromised key can’t be used to slash
100% of a validator’s funds
• Prevents evidence DoS attacks
Incentivizing
Decentralization
100%
Avg
Self Bond
Ratio
Reward
Percentage
Further Work
Help us!
• Attack and improve our economic and theoretical models
• Properly parameterize constants
• Help simulate real world attacks in Game of Stakes
• Test and contribute to the open source codebase
• Come up with a name for Cosmos Proof of Stake
Help us!
• Attack and improve our economic and theoretical models
• Properly parameterize constants
• Help simulate real world attacks in Game of Stakes
• Test and contribute to the open source codebase
• Come up with a name for Cosmos Proof of Stake
Help us!
• Attack and improve our economic and theoretical models
• Properly parameterize constants
• Help simulate real world attacks in Game of Stakes
• Test and contribute to the open source codebase
• Come up with a name for Cosmos Proof of Stake
Help us!
• Attack and improve our economic and theoretical models
• Properly parameterize constants
• Help simulate real world attacks in Game of Stakes
• Test and contribute to the open source codebase
• Come up with a name for Cosmos Proof of Stake
Thank You!
@cosmos @sunnya97

More Related Content

Similar to Cosmos Proof-of-Stake: An Introduction

Comp plan enkel
Comp plan enkelComp plan enkel
Comp plan enkel
kreativ787
 
Wcm777 opp english_pdf
Wcm777 opp  english_pdfWcm777 opp  english_pdf
Wcm777 opp english_pdf
ttran321
 
Esn Encounter Presentation (Ekers)
Esn Encounter Presentation (Ekers)Esn Encounter Presentation (Ekers)
Esn Encounter Presentation (Ekers)
brussell4250
 

Similar to Cosmos Proof-of-Stake: An Introduction (20)

Pokies terms explained
Pokies terms explainedPokies terms explained
Pokies terms explained
 
Equity Fundraising Founders Basics for Founders | Mohammed Elayan | Lunch & L...
Equity Fundraising Founders Basics for Founders | Mohammed Elayan | Lunch & L...Equity Fundraising Founders Basics for Founders | Mohammed Elayan | Lunch & L...
Equity Fundraising Founders Basics for Founders | Mohammed Elayan | Lunch & L...
 
Sva.pdf
Sva.pdfSva.pdf
Sva.pdf
 
Lect 6- The Value of an Invention.ppt
Lect 6- The Value of an Invention.pptLect 6- The Value of an Invention.ppt
Lect 6- The Value of an Invention.ppt
 
Phil Downe - Avoiding Shady IT Vendors (full)
Phil Downe - Avoiding Shady IT Vendors (full)Phil Downe - Avoiding Shady IT Vendors (full)
Phil Downe - Avoiding Shady IT Vendors (full)
 
Ppt eos
Ppt eosPpt eos
Ppt eos
 
10.3 venture capital term sheets.pptx
10.3 venture capital term sheets.pptx10.3 venture capital term sheets.pptx
10.3 venture capital term sheets.pptx
 
Artificial Intelligence Working On Investment Management
Artificial Intelligence Working On Investment ManagementArtificial Intelligence Working On Investment Management
Artificial Intelligence Working On Investment Management
 
802 1 x
802 1 x802 1 x
802 1 x
 
Why Automated Testing Matters To DevOps
Why Automated Testing Matters To DevOpsWhy Automated Testing Matters To DevOps
Why Automated Testing Matters To DevOps
 
Acceptance Test-driven Development: Mastering Agile Testing
Acceptance Test-driven Development: Mastering Agile TestingAcceptance Test-driven Development: Mastering Agile Testing
Acceptance Test-driven Development: Mastering Agile Testing
 
Comp plan enkel
Comp plan enkelComp plan enkel
Comp plan enkel
 
Demystifying Stock Options and Preferences: Valuing Startup Equity
Demystifying Stock Options and Preferences: Valuing Startup Equity Demystifying Stock Options and Preferences: Valuing Startup Equity
Demystifying Stock Options and Preferences: Valuing Startup Equity
 
Secure Salesforce: Code Scanning with Checkmarx
Secure Salesforce: Code Scanning with CheckmarxSecure Salesforce: Code Scanning with Checkmarx
Secure Salesforce: Code Scanning with Checkmarx
 
Digital Tokens: Accountability & Transparency Framework
Digital Tokens: Accountability & Transparency FrameworkDigital Tokens: Accountability & Transparency Framework
Digital Tokens: Accountability & Transparency Framework
 
Know Your Valuation for Equity Compensation (And Avoid the Perils of 409A)
Know Your Valuation for Equity Compensation (And Avoid the Perils of 409A)Know Your Valuation for Equity Compensation (And Avoid the Perils of 409A)
Know Your Valuation for Equity Compensation (And Avoid the Perils of 409A)
 
Fundametals of Blockchain and basics_L1.pptx
Fundametals of Blockchain and basics_L1.pptxFundametals of Blockchain and basics_L1.pptx
Fundametals of Blockchain and basics_L1.pptx
 
Wcm777 opp english_pdf
Wcm777 opp  english_pdfWcm777 opp  english_pdf
Wcm777 opp english_pdf
 
Monetary Tokenomics
Monetary TokenomicsMonetary Tokenomics
Monetary Tokenomics
 
Esn Encounter Presentation (Ekers)
Esn Encounter Presentation (Ekers)Esn Encounter Presentation (Ekers)
Esn Encounter Presentation (Ekers)
 

More from Tendermint Inc

More from Tendermint Inc (11)

Cosmos SDK Workshop: How to Build a Blockchain from Scratch
Cosmos SDK Workshop: How to Build a Blockchain from ScratchCosmos SDK Workshop: How to Build a Blockchain from Scratch
Cosmos SDK Workshop: How to Build a Blockchain from Scratch
 
Vision of Rearchitecting the Blockchain Ecosystem by Chjango Unchained
Vision of Rearchitecting the Blockchain Ecosystem by Chjango UnchainedVision of Rearchitecting the Blockchain Ecosystem by Chjango Unchained
Vision of Rearchitecting the Blockchain Ecosystem by Chjango Unchained
 
Many Chains, Many Tokens, One Ecosystem
Many Chains, Many Tokens, One EcosystemMany Chains, Many Tokens, One Ecosystem
Many Chains, Many Tokens, One Ecosystem
 
Open Finance & the Decentralization Movement
Open Finance & the Decentralization MovementOpen Finance & the Decentralization Movement
Open Finance & the Decentralization Movement
 
Introduction to Blockchain & Building the 3rd Generation with Golang
Introduction to Blockchain & Building the 3rd Generation with GolangIntroduction to Blockchain & Building the 3rd Generation with Golang
Introduction to Blockchain & Building the 3rd Generation with Golang
 
Interblockchain Communication for Blockchain Interoperability
Interblockchain Communication for Blockchain InteroperabilityInterblockchain Communication for Blockchain Interoperability
Interblockchain Communication for Blockchain Interoperability
 
A Brief History of Distributed State
A Brief History of Distributed StateA Brief History of Distributed State
A Brief History of Distributed State
 
Code Run of the Cosmos SDK
Code Run of the Cosmos SDKCode Run of the Cosmos SDK
Code Run of the Cosmos SDK
 
Intro to the Cosmos Network
Intro to the Cosmos NetworkIntro to the Cosmos Network
Intro to the Cosmos Network
 
Four Dimensional Blockchain Scaling
Four Dimensional Blockchain ScalingFour Dimensional Blockchain Scaling
Four Dimensional Blockchain Scaling
 
Ethermint 2.0: An Ethereum Scaling Solution by Cosmos
Ethermint 2.0: An Ethereum Scaling Solution by CosmosEthermint 2.0: An Ethereum Scaling Solution by Cosmos
Ethermint 2.0: An Ethereum Scaling Solution by Cosmos
 

Recently uploaded

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Recently uploaded (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 

Cosmos Proof-of-Stake: An Introduction

  • 2.
  • 3.
  • 4.
  • 5. Tendermint BFT • 1 Block Finality • Requires +2/3 of the validator set to sign on a block to commit • Proposer changes every round • Doesn’t scale as # of validators increases
  • 6.
  • 7. Why Proof of Stake?
  • 8. Basics of Proof of Stake
  • 9.
  • 10.
  • 11.
  • 12.
  • 14.
  • 15.
  • 16.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Out of Band Delegation
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Delegation Criteria Delegators will choose validators off of criteria such as: • Validator track record • Validator’s security setup • Self-declared, protocol- enforced minimum self-bond • Commission rate on fees/rewards
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 72. • Atoms are just a staking token for the Cosmos Hub • Staking tokens are similar to ASICs • Capital you need in order to be able to be a validator, and thus earn transaction fees Staking Token
  • 73. • Governance can maintains a whitelist of fee tokens • Each validator maintains a local relative weighting of values of the different whitelisted tokens • Validators can choose to order transactions based on this ordering. • Can also require these to be submitted to the chain in order to enforce a global min fee (using the median) Atom: 5 Photon: 3 BTC: 5000 ETH: 0.2 DAI: 1 Multi Fee Tokens
  • 74. • Inflation schedule is designed to encourage staking (the lower the percentage of staked atoms, the higher the inflation rate) • Block rewards split amongst all staked validators • Block rewards start off unbonded Block Rewards
  • 75. • Majority of collected fees gets split amongst the validators • Proposer gets a special dedicated percentage in order to incentivize them to not produce empty blocks Proposer 5% Split amongst all validators 95% Transaction Fees Proposer Reward
  • 76. 𝑃 = 0.01 + 0.02 ∗ 𝑆 + 0.02 (0.9 𝑅 ) 𝑃 = Proposers dedicated percentage 𝑆 = Percentage of stake whose precommits from previous block were included in the proposal 𝑅 = Round number that a proposal was first proposed Proposer Reward
  • 77. • Passive Accounting to avoid iterating over the entire set of stakers every block • Transaction Fees and block rewards are added to a pool • Shares in the pool are distributed to validators, who themselves have shares distributed to delegators • Validators can charge commission rate on Distribution
  • 88. Liveness Slashing • Validator gets a slight slash and is automatically put in an jail period of 2 days • After a jail period (2 days) the validator can choose to rebond • Unless delegators redelegated or unbonded, they will be delegated to the validator when he gets out of jail • The jail period time gets credited to the unbonding period, for both validator operators and delegators
  • 90. Consensus Fault Slashing • The consensus engine tracks and generates evidence for BFT faults • Double signing on a block • Breaking a Tendermint locking condition • Signing a block while you’re in the unbonding period • There can be a delay between the time an infraction occurs and the time that evidence is found
  • 91. Consensus Fault Slashing • At time of evidence, the validator is slashed and killed. • A killed validator has all of his delegators unbonded and the validator cannot revive itself • Only the worst slash infraction is tracked • Compromised key can’t be used to slash 100% of a validator’s funds • Prevents evidence DoS attacks
  • 92.
  • 93.
  • 94.
  • 95.
  • 97.
  • 98.
  • 99.
  • 102. Help us! • Attack and improve our economic and theoretical models • Properly parameterize constants • Help simulate real world attacks in Game of Stakes • Test and contribute to the open source codebase • Come up with a name for Cosmos Proof of Stake
  • 103.
  • 104. Help us! • Attack and improve our economic and theoretical models • Properly parameterize constants • Help simulate real world attacks in Game of Stakes • Test and contribute to the open source codebase • Come up with a name for Cosmos Proof of Stake
  • 105.
  • 106. Help us! • Attack and improve our economic and theoretical models • Properly parameterize constants • Help simulate real world attacks in Game of Stakes • Test and contribute to the open source codebase • Come up with a name for Cosmos Proof of Stake
  • 107.
  • 108. Help us! • Attack and improve our economic and theoretical models • Properly parameterize constants • Help simulate real world attacks in Game of Stakes • Test and contribute to the open source codebase • Come up with a name for Cosmos Proof of Stake