Adam Babik
    • 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
    Incentivization, Spam Protection and Validation in Whisper ========================================================= # OKRs - P0. Improve decentralization, including light client support - P2. 50 users running Status nodes # Problems - how to convince community to run Status nodes? - one idea is that people would do that voluntarily - they would not in the long-term - some would do that in order to be independent, for example running a Mail Server to avoid giving up some metadata - provide incentivization layer, i.e. pay SNT for running nodes - how much SNT? - we can assume a single node on Digital Ocean which costs around $10/mo - SNT value should cover that - it must be easy - clear step-by-step instruction - for example, how to run a Status node on Ubuntu and Digital Ocean - clear instruction how they can earn SNT - it requires registering and managing their nodes - DApp? - how to monitor if registered nodes are good and provide quality service? - one can register a node but it can work poorly - for example, Mail Server can be often down and fail to deliver all historic messages - payment must depend on the service quality - validators are a must ??? - who would run validators? - what would be incentivization for doing that? - stake and slash - providers would need to stake some SNT in order to register their nodes - if they provide good service, their stake is safe and they earn SNT - if the service quality is bad they do not earn SNT and their stake might be slashed - how to decide when stake should be slashed? - slashed stake, in some %, goes to a validator - we would need to provide validators - how to prevent from abusing being a validator? - I can run a lot of validators and try to attack nodes with DoS in order to get their stake - how validator can prove that service's quality is bad? - MailServer -- it fails to deliver historic message - one more problem is that MailServer can limit peers they accept; how a validator can not be blocked? - Whisper -- ??? - should validator also stake SNT? - can a Status node validate validator and slash its stake? :D - how and for what should the Status app users pay? - for Mail Servers, - each Mail Server may have a different price and capabilities (one can store messages for 1 month and another one for 1 year) - for message passing by Whisper nodes ??? - should the payment depend on the number of messages - OR the time the node uses connection slots - for bumping PoW of their messages ??? - is it possible? It was mentioned long time ago during a call with Whisper co-author - how should they pay? - stake and token burning? - there is an EIP for subscriptions payment # PoC 1 Above, we distinguished two groups of users: service providers and users. As we don't want to put any more impediments on users and we want to fulfill our quarter objectives, we should focus on service providers. ## Objectives of PoC 1 - it's possible for non-core-contributors to run a Mail Server and register it in Status Mail Server Registry - registration requires a stake in SNT - non-core-contributors can run validators which will verify if registered Mail Servers provide a good quality service - figure out how to do that - there is pool of SNT from which Mail Server providers are paid if they provide a good quality service - similar incentive as 1MM for work done through SOB # Thoughs on proof-of-custody inspired solution 1. We established that a MailServer needs to send commitments for envelopes it is going to store - commitment will contain envelope's hash and a signature of the hash 2. Validator submits a challenge on-chain, 3. Challange requires data from which a message hash is recreated: `hash=H(data, ttl, topic, expiry, nonce); if ecRecover(hash, sig) == msg.address`, the challenge is resolved successfully, 5. Reputation needs to be somehow calculated - commitments with larger envelopes (data field) will results in a larger reputation value - a higher number of commitments also increases a raputation score - obviously, failing a challenge decreases a reputation score ## Attack vectors 1. Validator can send a lot of challenges in order to get rid of compeeting MailServers, - if a challenge is resolved successfully, validator's stake is slashed 2. MailServer can trick a validator to challenge it, - it's hard to see any gain for MailServer - MailServer must pay a tx fee to resolve a challenge which is much higher than making a challenge; it won't get validator's stake 3. It is impossible to resolve a challenge successfully because of huge `data` value in the envelope - MailServer must be careful about commitments it broadcasts - check Optimizations section below ## Optimizations 1. Consider removing `data` from the calculations. This will require providing an additional hash `hash=H(H(data), ttl, topic, expiry, nonce)` in the commitment, however, it will reduce the cost of resolving a challenge. # Resources 1. https://gladius.io/pdf/gladius-whitepaper.pdf 2. https://distributedlab.com/whitepaper/ProofOfcustody.pdf 3. https://github.com/AdamColton/trustGraph

    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