vbuterin
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- type: slide slideOptions: transition: slide parallaxBackgroundImage: 'https://i.imgur.com/pvPDNWD.png' parallaxBackgroundSize: '100% 100%' parallaxBackgroundHorizontal: 0 --- ## Decentralizing the builder role --- ### General PBS idea: &nbsp; * **Builders** are highly specialized actors that construct candidate blocks and make bids to get them included * **Proposers** are validators that naively accept the highest bid * Goal: builders absorb economies of scale, proposers stay decentralized --- ### Why decentralize builders? &nbsp; * Even though this may greatly improve validator decentralization, it risks leaving builders very centralized * One builder may well produce >50% or even >90% of all blocks * We can mitigate the consequences of this with transaction inclusion lists, but it's still not a very nice thing. * Could we make the winning builder itself decentralized? --- ### What to decentralize? &nbsp; * Algorithms for choosing transactions * Resources for block construction (particularly in full danksharding) * Mechanisms for providing "extra builder services" (eg. pre-confirmations) --- ### What do we mean by "could"? &nbsp; * Technical feasibility * Would a decentralized builder be a market-winning actor? --- ## Algorithms for choosing transactions --- ### Builder / searcher architecture <img src="https://i.imgur.com/O4EXz3Z.png" style="filter:invert(1)" /> --- ### Challenges &nbsp; * How to protect searchers from MEV stealing? * How to allow the aggregator mechanism to combine searcher inputs? * How to ensure that the aggregator mechanism can actually publish the block (without assuming searcher honesty) * How to protect searchers against aggregator + proposer collusion? (!!) --- ### Idea 1: trusted hardware &nbsp; * Searchers send bundles encrypted to TPM key * Aggregator runs merge algorithm inside TPM * TPM unlocks decryption upon seeing proposer signature plus proof of availability * Attesters (requires properties of ETH protocol) * M-of-N assumption within the aggregator * Low-security real-time DA oracle (chainlink? 😛) --- ### Idea 2: merge disjoint bundles &nbsp; * Searchers send bundles encrypted to threshold key, along with access lists, and a ZK-SNARK of correctness * Aggregator chooses globally total-bid-maximizing disjoint set of bundles * When to compute state root? * One aggregator node decrypts then computes -> can collude with proposer * Compute after proposer agrees - requires eigenlayer technique or protocol change --- ## Block construction post-danksharding --- ### Challenges &nbsp; * A full block is 16 MB, and likely more in the future * Publishing the block requires publishing across a huge number of subnets * We want to avoid requiring a single node to do all this --- ### Distributed erasure coding! <img src="https://i.imgur.com/UJrhdSL.png" style="filter:invert(1)" /> * Whoever includes each data tx is responsible for encoding it and propagating the blobs * Aggregator can use real-time DA oracle * Network can fill in the columns --- ### "Filling in the columns" can be done with KZG math: &nbsp; * <span style="color:yellow"> $com(A) + com(B) = com(A + B)$ </span> * Let <span style="color:yellow"> $Q_A$ </span> prove <span style="color:yellow"> $A(z)$ </span> and <span style="color:yellow"> $Q_B$ </span> prove <span style="color:yellow"> $B(z)$ </span> * Then, <span style="color:yellow"> $cQ_A + dQ_B$ </span> proves <span style="color:yellow"> $(cA + dB)(z)$ </span> * Because of this linearity, proofs for existing rows can be combined into proofs for missing rows --- ### In a non-KZG setting... &nbsp; * Builder must provide row commitments <span style="color:yellow"> $R_1 ... R_h$ </span> and column commitments <span style="color:yellow"> $C_1 ... C_w$ </span>, where <span style="color:yellow"> $R_i(x_j) = C_j(x_i)$ </span> * And a proof that the commitments are equivalent * This can be done distributed, but requires a 2+ round protocol --- ## Extra builder services --- ### Builders can provide pre-confirmations! &nbsp; * Builder publicly agrees that if user sends tx with prio fee >= 5, builder will immediately send an (enforceable) message agreeing to include it * If prio fee >= 8, the user gets a post-state root * This can be done either with builder reputation, or with a third-party DA oracle --- ### Can a distributed builder do this? &nbsp; * Yes! Just run tendermint internally * Final signing is done threshold style * Penalize builders for: * Double-finality in the tendermint * Contributing to a final signature that is incompatible with the tendermint * This requires abstracted final signing for max security, as threshold BLS is unattributable * The more participants, the more security! --- ## So, can a distributed builder be economically viable? &nbsp; * Competitive advantages: * More easily trusted by searchers * Censorship resistance * Huge security deposits behind the pre-confirmation service * Weaknesses: * Latency * Slower adaptability

    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