Thomas Coratger
    • 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
    # WHIR EthResearch ## Introduction: why and how WHIR could be used for Ethereum in the future? - For Ethereum, proof size and verification time are crucial. - We want validators to run on very small devices (ultimately Raspberry pi pico 2 as highlighted by Justin Drake during ethproofs call #2) in order to improve decentralization of the network. - Signature aggregation for the beam chain will be considered as the main example during all this post without loss of generality. - Recently, we have seen a wave of switches from traditional univariate polynomial techniques to multilinear settings for zk proofs. - Jagged PCS is a very good example of this because it marks this very important switch, achieving real time proving for the first time using multilinear pcs. - In univariate settings, the prover must commit to, and provide evaluation proofs of each of the column polynomials of the trace. As we often have a huge number of columns, these operations dominate the verifier's runtime in modern hash-based systems such as SP1. - Justin Thaler has long emphasized the beauty, simplicity and importance that sumcheck should have in future proof systems. - We are lucky because WHIR can handle both univariate and multilinear cases so we can construct a multilinear pcs with it. - WHIR has a lot of qualities making it a suitable candidate for future proof systems on Ethereum: - Multilinear setting possible - Very small proofs - Reduced verifier work - For Ethereum, we want: - Simplicity for proof systems we will use - Hash based setting is attractive because it relies only on a hash function (as opposed for example to lattice based settings which are much more complex to setup properly) ## Some context on modern zk SNARKs - How we build SNARGs through poly-IOPs - Modern approaches use hash based SNARGs: poly-IOPs + compilation via the BCS transformation - Only random oracles needed + many advantages: transparent setup, post quantum security, fast prover perf - But right now we have slow verifier on traditional techniques leading to potential limitation for Ethereum and proof verification (decentralization). For example, FRI could be quite expensive on this point. - Big question is: how to reduce verifier time without degrading prover efficiency or inflating the proof? ## What WHIR can offer? - Extremely low query complexity, - Verification in microseconds, - Compatibility with both univariate and multilinear poly-IOPs. This traduces directly in: - faster SNARG verification - smaller proofs in both univariate and multilinear settings ![image](https://hackmd.io/_uploads/BkbWdzizlx.png) Here it would be nice also to explain clearly what is the function of WHIR in the whole proof system: where does WHIR intervene? ## How does WHIR work? Here I will rather see a complete explanation but without entering in demonstration details or things like that. Rather something that both engineers and mathematicians can understand. ### Reed Solomon code proximity test - What is the goal of WHIR: to check if a function is close to being a valid Reed–Solomon codeword, under some extra constraint. - Recall on why we need this? - What is being tested and how? - Probably the definition of constrained Reed Solomon codes - Probably an illustration would be nice here ### Problem folding - How do we fold the problem in WHIR vs FRI/STIR - Maybe we need a small illustration here, something like this but probably simpler ![image](https://hackmd.io/_uploads/Hyzk5fjGgl.png) - Folding Reed–Solomon Codes and preserving distance - Mostly explaining this: folding reduces the complexity of the function we’re checking without significantly affecting how far it is from being a valid codeword - Why does folding preserves distance? - I guess we need to define properly here the notion of mutual correlated agreement that is quite new - We should probably also mention: Why folding preserves lists? - i.e. what if $f$ is *close* to multiple codewords? Could folding disrupt that structure or introduce new "fake" codewords? - The good news is: **folding behaves well with lists, too**. This is another benefit of mutual correlated agreement. It ensures that folding **commutes** with list decoding ### Summary with a WHIR iteration - After all the explanations we can probably summarize things by showing how a WHIR iteration works: 1. Inputs 2. Interation phase: prover and verifier exchange messages 3. Decision phase: the verifier performs various checks to confirm consistency ## Specific highlight on signature aggregation Without loss of generality, we would like to make an emphasis on why we specifically investigated a lot WHIR for signature aggregation of the beam chain and how we plan to use it. - Beam chain small recap: - Refactor/simplification of the consensus layer - Signature aggregation via post quantum cryptography as opposed to BLS signatures that rely on elliptic curves and for which aggregation is easy via pairing. - We need a post quantum way to aggregate signatures and verify them - Proofs need to be ultra small (aggressive target is 128 kib) and this appears increasingly obvious that classical PCS (and univariate settings) cannot afford this. - We need to rethink the proof system we will use from scratch - Hash based proof system is attractive because of simplicity and only relying on hash function - Constructing our proof system on the top of the WHIR multilinear PCS proved amazing on our first experiments with Poseidon hashing - We have small proofs - Fast verifications - With some implementation tricks we are making WHIR prover part faster and faster day after day ## Summary and next steps - Describe our whole proof construction in a subsequent post - Continue making WHIR faster and faster with low level tricks and more modular to be use widely all over Ethereum - Discover potential other use cases of WHIR for Ethereum (lots of zkVM teams already showed interest in integrating WHIR to their proof system).

    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