Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Bonded proof-of-stake design specification #3459

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/spec/_proposals/bonded-proof-of-stake/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all: doc

doc:
pandoc --mathjax --toc --number-sections -o bpos.pdf bpos.pdc

.PHONY: all doc
65 changes: 65 additions & 0 deletions docs/spec/_proposals/bonded-proof-of-stake/bpos.pdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
title: Bonded Proof-of-Stake
author: Tendermint/Cosmos Team
date: \textit{Working Draft}
abstract: Bonded proof-of-stake is the Sybil-resistance construction utilized by the Cosmos Hub in conjunction with Tendermint BFT consensus to provide a quantifiably secure distributed ledger backbone.
urlcolor: cyan
header-includes:
- \usepackage{fancyhdr}
- \usepackage{graphicx}
- \usepackage{hyperref}
- \pagestyle{fancy}
- \fancyhead[RE,LO]{BPoS}
- \fancyhead[LE,RO]{[logo]}
- \fancyhead[CO,CE]{}
- \fancyfoot[CO,CE]{}
- \fancyfoot[LE,RO]{\thepage}
---

## Prerequisites

- BFT voting consensus algorithm
- Scarce fungible token in the state machine

## Desiderata

- Imposition of scarcity on voting within an unbonding period (both full nodes / lite clients)
- Imposition of cost on downtime
- Maximize amount of bonded stake

## Terminology

- Stakers: validators, delegators
- Validators: bonded, unbonding, unbonded
- Slash
- Equivocation
- Unbonding period

## Implementation

- Tracking of what stake contributed to which vote
- Proportional slashing of contributing stake on equivocation discovery
- Microslashing for prolonged downtime
- Split of stakers into validators / delegators due to TM O(n^2) voting (and desire for stake to be bonded)
- Inflation to pay for risk + operation of voting

### Particulars

- Instant redelegation

### Deviations

- Simplified accounting in slashing for past infractions
- Tombstone (limited to one slash event while bonded)

### Idiosyncrasies

- Must limit liquidity of stake due to proposer reward
- Unbonding delegations, redelegations cannot be canceled

## Future Improvements

### Light Client Efficiency

- Bisectable light client proofs
- Must slash for signatures when not bonded.
Binary file not shown.