Flashbots
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • 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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • 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 Sharing URL Help
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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • 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
    # MEV-Boost workshop 09/12/2021 Recording: {%youtube ivcI_plFu1o %} ## architecture ![](https://hackmd.io/_uploads/ry2xGDAYF.png) ### design goals | | MEV-Geth | MEV-Boost | PBS | | ------------------------- |:--------:|:---------:|:---:| | Blockspace auction | ✅ | ✅ | ✅ | | Full block bids | ❌ | ✅ | ✅ | | Solo staker participation | ❌ | ✅ | ✅ | | Client diversity | ❌ | ✅ | ✅ | | Complete privacy | ❌ | ⚠️* | ✅ | | Trustless | ❌ | ⚠️* | ✅ | * complete privacy and trustlessness is partially improved by mev-boost because trusted counterparties is changed from relay + miner to only relay ### network topology The system is designed to have multiple redundant parties play each role. ![](https://hackmd.io/_uploads/B1BmzDRKY.png) ### validator setup Dashed components are new components introduced by mev-boost. ![](https://hackmd.io/_uploads/HJfrGPCKt.png) ### sequence diagram ```sequence participant network participant consensus participant mev_boost participant execution participant relays Title: MEV-Boost Block Proposal network->consensus: votes, attestations & new blocks consensus->mev_boost: `engine_forkchoiceUpdatedV1` mev_boost->execution: `engine_forkchoiceUpdatedV1` mev_boost->relays: `engine_forkchoiceUpdatedV1` Note over consensus: wait for allocated slot consensus->mev_boost: `builder_getPayloadHeaderV1` mev_boost->execution: `engine_getPayloadV1` mev_boost->relays: `builder_getPayloadHeaderV1` Note over mev_boost: select most valuable payload mev_boost-->consensus: `builder_getPayloadHeaderV1` response Note over consensus: sign the block consensus->mev_boost: `builder_proposeBlindedBlockV1` Note over mev_boost: identify payload source mev_boost->relays: `builder_proposeBlindedBlockV1` Note over relays: validate signature relays-->mev_boost: `builder_proposeBlindedBlockV1` response mev_boost-->consensus: `builder_proposeBlindedBlockV1` response consensus->network: propose block ``` ## milestones See [mev-boost repository](https://github.com/flashbots/mev-boost). 1. **kintsugi compatibility (mid december 2021)** simple middleware logic with minimal consensus client changes, simple networking, no authentication, and manual safety mechanism 3. **security, authentication & reputation (end of january 2021)** cleanup consensus client and add security fallbacks 5. **privacy (optional / tbd)** add p2p comms mechanisms for validator IP obfuscation 7. **configurations (optional / tbd)** add optional configurations | Milestone | 1 | 2 | 3 | 4 | | ---------- |:---:|:---:|:---:|:---:| | mev-boost | ✅ | | | | | mergemock | ✅ | | | | | lighthouse | ✅ | | | | | prysm | | | | | | teku | | | | | | nimbus | | | | | | lodestar | | | | | | grandine | | | | | ## open questions ### Validator IP obfuscation **Problem:** Authenticated communication between mev-boost and relays would leak the IP address of the validators. **Option 1:** Mess with p2p A proposal was discussed which would move the validator --> relay messages to a p2p topic and rely on anonymity set for relay --> validator messages. The proposal is described [here](https://hackmd.io/@paulhauner/H1XifIQ_t#Change-3-New-Gossipsub-Topics). The benefit of this is it makes information distribution symmetric. Anyone listening for this topic on the p2p network will obtain information about the `feeRecipient` and the relay payload proposal which can be used to validate the block proposal. The downside is the complexity of implementation and incentive for it to be bypassed. **Option 2:** Let the validator deal with it The second option is to let the validator deal with it. If a validator is concerned about targetted DOS, they can insert a reverse proxy in between the mev-boost and relay communication (like what miners do today). Many client teams and validators have indicated a strong preference for this option because of simplicity + performance. ### feeRecipient authentication **Problem:** The validator must communicate to the network the `feeRecipient` it plans to use. This information must be available to all block builders and relays. **Proposal:** MEV-Boost should be able to request from the beacon client a list of `feeRecipient` addresses signed by the corresponding validator. This authenticated list can then be made visible to the network by the relays. This proposal requires introducing a new signing domain to the validator client and an API to the beacon node to aggregate these messages. ### Execution client block value **Problem:** MEV-Boost must know the value of the payload produced by the local execution client in order to perform profit switching against the payloads from the relays. **Proposal:** Add a return value to the `engine_getPayloadV1` method which surfaces the change in balance of the `feeRecipient` from the execution of this payload. Note: this requires a modification to the engine API. ### Relay fraud proof message **Problem:** MEV-Boost must be made aware when a relay has delivered an invalid payload to a different validator. **Proposal:** A new fraud proof message which can be delivered to mev-boost by a relay which proves that one of the recently produced blocks proposed by a relay was invalid. ### Splitting away executePayload call **Problem:** Consensus clients should not rely on mev-boost for validating the chain. **Proposal:** Introduce a call splitter to the beacon nodes which routes `engine_executePayloadV1` calls directly to the local execution client instead of to mev-boost. ## resources - [mev-boost architecture](https://ethresear.ch/t/mev-boost-merge-ready-flashbots-architecture/11177) - [mev-boost repository](https://github.com/flashbots/mev-boost) - lighthouse notes - [architecture notes](https://hackmd.io/@paulhauner/BJHb-76It) - [summary of client modifications](https://hackmd.io/@paulhauner/H1XifIQ_t) - [suggestions for increased security](https://hackmd.io/@paulhauner/SJQvD6cKK)

    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