Client-Side Proving R&D
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
        • 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

        This note has no invitees

      • Publish Note

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

        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.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        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
      • 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 Help
    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
    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

    This note has no invitees

  • Publish Note

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

    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.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    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
    # Client-Side Proving - 2025 Q3 Roadmap Client-side proving is essential to preserve privacy and decentralization. It allows computing ZKPs locally on user device without the need to outsource the computation to a third party which can compromise privacy. ## 1. Team Members - Alex Kuzmin (team lead) - Brechy - Guorong Du ## 2. Q3 Objectives - The primary objective is to map the current ZKP systems and zkVMs that are feasible to run on mobile and obtain concrete benchmarks of their performance; - The secondary objective is to explore in detail the most promising existing ZKP systems and their potential enhancements. Both of the objectives are detailed below. ## 3. Objective 1 - Benchmarks * Deliverable: **Client-Side Proving Quarterly Report** (details below) * Must finish before Devconnect: **yes** * Risk: **very low** * Team member allocation * Guorong Du - 100%, Alex Kuzmin - 50%, Brechy - 50% ### 3.1 CSP Quarterly Report Our [recent benchmarks for zkID](https://pse.dev/blog/efficient-client-side-proving-for-zkid), despite their limited scope, have gained substantial attention of the community. We have realized that PSE is in a great position to continue this effort and extend it beyond zkID by benchmarking the typical circuits in ZKP systems that claim to be CSP-friendly. Expectations: - After establishing the technical foundation (CI workflow, various circuits in multiple ZKP systems) it will be easy to add new circuits and merge upstream improvements of the target ZKP systems; - The high publicity and high quality of our benchmarks will attract the community's attention and we will get contributions. ### 3.2 Objective 1 Timeline You can find the detailed motivation below the table. | Phase | Deliverable | Motivation | | ------- | --------------- | ------- | | Month 1 | zkVM SHA-256 Benchmarks | Very high demand for zkVM on mobile | | Month 2 | ECDSA benchmarks | Circuit is very different from SHA-256, relevant to zkID | | Month 3 | Completing the benchmarks according to the [spreadsheet](https://docs.google.com/spreadsheets/d/1LFG-icfQf4-3YoxoR4GPdkcbAmD01mLPhiM3x4ufmnU/edit?usp=sharing), as many as possible. Run on a cloud instance, *mobile benchmarks are optional but desirable.* | CSP Quarterly report should be as thorough as possible | ### 3.3 Motivation: zkVMs Benchmarking The following developments have informed our choice of targets (see the [spreadsheet](https://docs.google.com/spreadsheets/d/1LFG-icfQf4-3YoxoR4GPdkcbAmD01mLPhiM3x4ufmnU/edit?usp=sharing)): - Numerous zkVMs are claiming to be CSP-friendly; - **mopro** team is looking to integrate a zkVM into their libraries. As a first step, we will benchmark the same kind of circuit (e.g. SHA2-256) in multiple VMs in order to establish a reusable foundation per stack early on, enabling smoother iteration and better parallelism as we benchmark other circuits. This will be a continuation of our previous work where we have benchmarked SHA-256 for zkID. We also believe the work being done by the EF's Applied Cryptography Team in both [Ere](https://github.com/eth-act/ere) and [zkEVM Bench](https://github.com/eth-act/zkevm-benchmark-workload) is great and we would like to explore possible collaborations on overlapping subjects (e.g., contributing zkVMs of our choice that are absent in Ere). ### 3.4 Motivation: ECDSA Benchmarking - It's related to zkID; - It's a very different kind of cirucit compared to SHA-256; - These two primitives cover the most demanding use cases of zkID where it's necessary to prove credentials coming from conventional digital identity systems. ### 3.5 Benchmarking Pipeline Explore possible ways of automation to simplify the process of adding new circuits and new schemes to be benchmarked. This would also imply having standardized targets and types of instances being ran to ensure that the same hardware is utilized for all benchmarks. After benchmarking on cloud instances, we will filter out the ZKP schemes and circuits that fit into average [mobile RAM](https://pse.dev/blog/efficient-client-side-proving-for-zkid) (~4 GB for Android and ~6 GB for iPhone), and run them on mobile to obtain the most accurate results. ### 3.6 Quarterly Report Delivery Format - Minimum: PSE.dev blog post; - Desired state: csp.pse.dev that looks like an e-commerce "product comparison" page or DefiLlama (e.g., as a user, I want to be able to filter the ZKP schemes by the lack/absence of setup, PQ-soundness, sort by proving time, etc.). ### 3.7 Optional: Consider CSP SoK/Survey Writeup Evaluate whether writing a Systematization of Knowledge or Survey of the current state of Client Side Proving is a good idea or valuable output of the team. The downside is that the target is shifting - new ZKP schemes emerge and the information stays relevant most likely for only a few months. ## 4. Objective 2 - New CSP ZKP Exploration These tasks involve the improvement of the existing ZKP systems or development of new tooling. * Deliverables: Spartan-WHIR Lite, HyperPlonk-WHIR (details below) * Must finish before Devconnect: **no**, but nice to have * Risk: **medium** * Team member allocation * Alex Kuzmin - 50%, Brechy - 50% ### 4.1 Spartan-WHIR Spartan-WHIR is a combination of Spartan PIOP and WHIR PCS developed by World for their [ProveKit](https://github.com/worldfnd/ProveKit). They are heavily invested into that project. It's driven by their need for 3rd parties to develop ZK apps on top of their platform. The ZKP system looks promising due to combining a high-performant PIOP with a high-performant, ***transparent (no setup!)*** and PQ-sound PCS. However, there are a few things that are specific to their project and could be done differently to gain wider adoption: - Verify WHIR proof on-chain using PSE-developed Solidity verifier, [Sol-WHIR](https://github.com/privacy-scaling-explorations/sol-whir). Currently ProveKit is supposed to send Spartan-WHIR proofs to an aggregation service that wraps them into Groth16. This allows for proof aggregation, which is a specific feature required by World. At the same time, it undermines the decentralization. Verifying the proof directly is [feasible](https://ethresear.ch/t/on-the-gas-efficiency-of-the-whir-polynomial-commitment-scheme/21301), as demonstrated by PSE's previous work. - Convert Circom R1CS to Spartan R1CS directly. Currently, ProveKit is using Noir as a frontend, betting on future wide adoption. However, they have spent significant development effort to convert ACIR into R1CS and this conversion introduces complexity and security considerations (e.g., is the resulting R1CS well-constrained? are custom R1CS implementations of Noir "opcodes" correct?). Adding Circom support would also allow to tap in into the huge pool of existing Circom circuits. ### 4.2 Implementation Steps 1. Benchmark SHA-256 in Spartan-WHIR to have an estimate of its performance. This step is also necessary for the CSP Quarterly Report described in section 3. 2. If the results are good, work on adding a **Circom frontend + witness generator**. We're in touch with World team and they think that Circom frontend is a nice-to-have. 3. Evaluate direct on-chain verification. If the modified ZKP system proves to be worthy, we can further productize it in the next iteration of the project (Q4) by improving the DevEx (e.g., introducing a CLI that allows to compile a Circom circuit, generate SOlidity verifier, etc.) ### 4.3. HyperPlonk-WHIR and SuperSpartan-WHIR, or Mitigating the Spartan-WHIR Risks The World team is heavily invested into Spartan-WHIR and our modifications should be always judged by what good they bring compared to the upstream. However, there is a more promising potential ZKP system that we can explore -a combination of HyperPlonk PIOP and WHIR PCS. HyperPlonk paper directly claims better performance than Spartan (https://eprint.iacr.org/2022/1355.pdf). Therefore, it is logical to infer that HyperPlonk-WHIR combination has potential compared to Spartan-WHIR. We will try to assess feasibility with HyperPlonk authors. However, we have already been in touch with the former colleague Han who has done a lot of experimentation with both HyperPlonk and WHIR: > HyperPlonk PIOP + WHIR could bring a very good proving time + proof size balance... > ...for small R1CS perhaps Spartan and HyperPlonk will be almost as fast, but if we need to prove huge amount of complicated relation (e.g. hashes), I think HyperPlonk will be more efficient Han has already developed a [codebase](https://github.com/han0110/p3-playground/blob/main/hyperplonk/examples/koala_bear_poseidon2.rs) where we can test the HyperPlonk-WHIR combination, so we can quickly evaluate it in comparison with Spartan-WHIR. HyperPlonk is a plonkish PIOP so it is naturally a much better fit for the Noir frontend which intermediate representation, ACIR, is closer to plonk rather than R1CS. Therefore, if HyperPlonk-WHIR outperforms Spartan-WHIR, we may consider enabling the Noir fronted for this system. Similar to out considerations from 4.1 and 4.2, we may evaluate the on-chain proof verification using Sol-WHIR. Another promising combination worth evaluating is SuperSpartan-WHIR: https://github.com/TomWambsgans/Whirlaway. More input from Han: > Sumcheck based PIOP will be the best choice for mobile (memory constrained). And the rest is about constraint system, R1CS (Spartan), AIR (HyperPlonk), CCS (SuperSpartan) have their own strengths > not sure in general purpose which one would be better (the proof size will be dominated by WHIR) ### 4.4 Objective 2 Timeline | Phase | Deliverable | | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Weeks 1-2 | Clear winner between Spartan-WHIR, HyperPlonk-WHIR and SuperSpartan-WHIR according to benchmarks | | Weeks 3-7 | On-chain verifiability assessment | | Weeks 8-12 | Noir adapter development |

    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
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    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