John Adler
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Slashing is Not Required to Solve Nothing-at-Stake === <small>Thanks to Mustafa Al-Bassam (@musalbas), Ismail Khoffi (@ismail), and Mikerah Quintyne-Collins (@mikerah) for review.</small> <small>HackMD mirror: https://hackmd.io/Vyor9g4kTquybdJSK1DOPw</small> Resolving the Nothing-at-Stake problem in permissionless consensus protocols using Proof-of-Stake can be accomplished with slashing. Common knowledge tells us that slashing is _required_ to solve Nothing-at-Stake, but is it? This post analyzes slashing and Nothing-at-Stake, and proposes an alternative to slashing that can provide exactly the same guarantees. ## Prerequisite Reading - [Slasher: A Punitive Proof-of-Stake Algorithm](https://blog.ethereum.org/2014/01/15/slasher-a-punitive-proof-of-stake-algorithm/), Buterin - [On Stake and Consensus](https://nakamotoinstitute.org/static/docs/on-stake-and-consensus.pdf), Poelstra - [Nakamoto Consensus Requires Social Coordination and Subjectivity](https://talk.lazyledger.io/t/nakamoto-consensus-requires-social-coordination-and-subjectivity/28), Adler ## Proof-of-Stake and Nothing-at-Stake Permissionless consensus protocols based on Proof-of-Stake generally work by having a set of bonded coin-holders (stakers) vote on blocks, with new blocks being added to the chain once a quorum is met. When a staker wishes to cease their involvement in staking, they must remain in an unbond*ing* (but still bonded) state for a period of time, after which they can completely unbond their coins, freeing them from any rights or responsibility associated with staking. There are two issues that arise [that are not present in Nakamoto Consensus](https://nakamotoinstitute.org/static/docs/on-stake-and-consensus.pdf): short-range attacks and long-range attacks. In the former, individual stakers vote for two conflicting chains (equivocate) while still bonded. This can be resolved by slashing still-bonded stakers, introducing a cost for equivocating, much like how there is a cost to working on two different chains in Nakamoto Consensus. The latter attack can be resolved [with a weak subjectivity assumption](https://talk.lazyledger.io/t/nakamoto-consensus-requires-social-coordination-and-subjectivity/28). This post dives further into short-range attacks, another name for which is _Nothing-at-Stake_. Without a penalty for voting for different (conflicting) chains, there is no real cost to voting for any number of different chains (typically only a single digital signature is needed to vote for a chain, which is trivial to produce). In Nakamoto Consensus, work must be done on all chains a miner wishes to "vote" on. [Slashing](https://blog.ethereum.org/2014/01/15/slasher-a-punitive-proof-of-stake-algorithm/) is one way of solving the Nothing-at-Stake problem and short-range attacks: if a still-bonded staker equivocates, inclusion of cryptographic proof of equivocation into a chain causes the staker to be slashed on that chain, i.e. a fraction of their coins are burned. The exact fraction is a system parameter, and choosing a good value for this parameter is outside to scope of this post. We see that slashing does indeed introduce a cost to voting for two conflicting chains, and thus solves the Nothing-at-Stake problem. One important thing to note is that Nothing-at-Stake is a game-theoretical issue that only concerns _individually rational actors_, and is not related to a history reversion with a large fraction of staking power (usually > 1/3 for most stake-based permissionless consensus protocols). Every single staker, even if they have only a single coin, will vote on everything they can without a disincentive to constrain their votes to a single chain. ## Staking Model We consider the model where the blockchain exists in a closed system, whereby the total market capitalization of all coins remains the same. In other words, if new coins are minted, the price of each coin drops proportionally, and if existing coins are burned, the price of each coin rises proportionally. While the real world is not a closed system, other causes of movements in coin price independent of the mechanisms discussed in this post affect all cases equally, and can thus be safely ignored. We assume that staking rewards in the form of issuance of new coins are permanently positive and non-zero. ## Slashing Since market capitalization is fixed, in order to have any effect penalties must reduce the fraction of coins of an offending staker. Given a staker with $c$ coins and total number of coins $C$, their original fraction of coins $\mathcal{F}$ is $\frac{c}{C}$. We can calculate their new fraction of coins $\mathcal{F}'$ after being slashed as $$ \mathcal{F}' = \frac{c - c \sigma}{C - c \sigma} $$ , where $0 < \sigma \leq 1$ is the _slashing rate_, a system parameter. For a small staker with $c \ll C$, we can simplify the above equation as $$ \mathcal{F}' = \frac{c - c \sigma}{C - c \sigma} \approx \frac{c - c \sigma}{C} $$ As an example, let us consider the case where $\sigma = \frac{1}{32}$, e.g. if a staker has 32 coins, they will lose 1 coin if slashed. Their new fraction of coins is $$ \mathcal{F}' = \frac{\frac{31 c}{32}}{C} = \frac{31}{32}\frac{c}{C} = \frac{31}{32}\mathcal{F} $$ We can see that slashing reduces the fraction of coins of an offending staker primarily by reducing their number of coins. ## A Rose By Any Other Name In this section we propose an alternative equivalent to slashing: blacklisting. If a slashable offense is detected, rather than being slashed, the still-bonded (i.e. actively-bonded or unbonding-but-not-yet-unbonded) staker is _blacklisted_. In this state, they are set to unbonding (or remain as unbonding) for a period of time, a system parameter. The blacklisting duration is added on top of the regular unbonding duration. During this time, they cannot do anything with their coins, and cannot collect staking rewards as they are not actively bonded. We note that since staking rewards are positive and non-zero, not staking results in dilution, as the total number of coins increases. Assuming a fixed issuance rate, and given a staker with $c$ coins and total number of coins $C$, their new fraction of coins after being blacklisted is $$ \mathcal{F}' = \frac{c}{(C - c) \rho + c} $$ , where $\rho > 1$ is the _reward rate_, the issuance rate for staking coins _for the duration of a blacklisting_. As the name suggests, the issuance rate only counts issuance of new coins, not transaction fees. This post only considers the case of a fixed issuance rate, but more complex issuance rate equations can be modeled as well and are left as an exercise for the reader. _Note that issuance of new coins should generally greatly outweigh transaction fees in order to avoid [consensus instability](https://arxiv.org/abs/1904.05234)._ For a small staker with $c \ll C$, we can simplify the above equation as $$ \mathcal{F}' = \frac{c}{(C - c) \rho + c} \approx \frac{c}{C \rho} $$ to simplify analysis. Note that performing analysis on the full equation ultimately yields the same conclusions, and is left as an exercise for the reader. Can this penalty---that is not slashing---produce the exact same results as slashing? Consider the same example as the previous section, $\sigma = \frac{1}{32}$. We can equate the RHS of both equations and compute a value for $\rho$: $$ \begin{align} \frac{31}{32} \frac{c}{C} = & \frac{c}{C \rho} \\ \rho = & \frac{32}{31} \\ \end{align} $$ In other words, a value of $\rho \approx 103\%$ produces the exact same end result as slashing with $\sigma = \frac{1}{32}$. As another example, consider $$ \lim\limits_{\rho \to \infty} \frac{c}{(C - c) \rho + c} = 0 $$ The equivalent slashing rate would clearly be $100\%$, i.e. $\sigma = 1$. ## Penalties to Solve Nothing-at-Stake We see that it is always possible to compute a value for $\rho$ given $\sigma$ (or $\sigma$ given $\rho$) with the equation $$ \frac{c - c \sigma}{C - c \sigma} = \frac{c}{(C - c) \rho + c} $$ , and therefore the two penalties can be parametrized to be completely functionally equivalent. However, without changing the reward rate, blacklisting can only be parametrized using the duration of blacklisting. Given contemporary deployments of Proof-of-Stake protocols, and their reward and slashing rates, this in practice could result in blacklisting durations on the order to several months to a year or more to achieve the same effect as slashing. Slashing and blacklisting are two elements from a generic class of penalties that can be applied to introduce a cost to equivocating and other staker offenses. With proper parameter choice, these two schemes can produce identical results. There may be other penalties that can be applied to offending stakers, and exploration to the possibility space is left as future research. ## Conclusion We demonstrate that _slashing_ is not necessary to resolve Nothing-at-Stake in permissionless consensus protocols using Proof-of-Stake, but instead a generic class of penalties, which includes _blacklisting_---locking bonded coins that have equivocated for a period of time---is sufficient. In fact, we show that blacklisting is functionally identical to slashing, and provides the same guarantees under our model.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully