Koh Wei Jie
    • 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
    • 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
    • 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 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
  • 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
    1
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    Total: US$1500. May be split among multiple teams. ## Motivation Zero-knowledge cryptography enables succinct verification of proofs the authenticity and integrity of information. This property empowers individuals to prove and establish the veracity of content in an age where content can be easily and undetectably transformed, manipulated, and even faked. Use cases like client-side proving of machine learning transformations over private data could be a powerful defense against AI-driven misinformation. Furthermore, other [ZKML](https://mirror.xyz/privacy-scaling-explorations.eth/K88lOS4XegJGzMoav9K5bLuT9Zhn3Hz2KkhB3ITq-m8) applications such as identity verification tend to have extremely high proof generation needs. Client-side proving today, however, is notably slow, due to the large computational load of ZK proofs, as well as the inherent performance limitations of web browsers. Fear not, there is hope! In the near future, web applications will be able to easily leverage clients' GPUs for heavy computational tasks, including ZK cryptography. Since GPUs are built for highly parallel workloads, cryptography engineers should strive to add this powerful new tool to their repertoire. This tool is [WebGPU](https://www.w3.org/TR/webgpu). ### About WebGPU WebGPU is a new API for web browsers that allows web applications to easily access features of clients' GPUs and express arbitrary computation through a language called [WGSL](https://www.w3.org/TR/WGSL/). [Support for WebGPU](https://caniuse.com/webgpu) is currently available in most modern browsers like Google Chrome, Firefox, Edge, and Safari (although it may have to be enabled using a configuration option). ## Getting started Please fork the [wgsl-poseidon](https://github.com/geometryresearch/wgsl-poseidon) repository, which provides boilerplate for working with WebGPU in the browser and in the command line. It contains a WGSL implementation of the Poseidon hash function in the BN254 scalar field, as well as basic big integer and finite field arithmetic functions. Participants are strongly encouraged to use this repository as a starting point to avoid duplicating unnecessary effort. Wei Jie is Geometry's point person for this bounty. He will be available around the hackerthon venue and interested teams are strongly encouraged to reach out to him for support and advice. Please contact him via Telegram (weijiek) or email ([wj@geometry.xyz](mailto:wj@geometry.xyz)). ## Criteria We ask that participants focus on implementing commonly used algorithms in ZK proving systems that are amenable to parallelism. These include, but are not limited to: - High-level algorithms: - Multi-scalar multiplication (MSM) - Fast Fourier transforms (FFT) - Efficient elliptic curve arithmetic - e.g. efficient implementations of curve addition, exponentiation, etc - Efficient finite field arithmetic - e.g. efficient implementations of x^5 mod p, which is heavily used in the Poseidon hash function, or x ^ 7 mod p, which is heavily used in the MiMC7 hash function. - Any commonly used hash function - e.g. Poseidon 2, Reinforced Concrete, Tip5, or MiMC. - Do not submit an implementation of Poseidon, since it has already been written, and will be included in the code template. However, Poseidon 2 is OK. Participants should be aware of the WGSL code in the following repositories and refrain from duplicating effort. - [msm-webgpu](https://github.com/sampritipanda/msm-webgpu) - Implements Pippenger's algorithm for MSM in the Vesta field, as well as key elliptic curve arithmetic functions. Much of the big integer and finite field code in the starter template was adapted from this repository. - [webgpu-examples](https://github.com/voidash/webgpu-examples) - Implements BLS12-381 finite field arithmetic. ### Outstanding criteria Submissions that stand out should: - Motivate the work. e.g. describe the contexts in which the algorithms they implement would be useful for ZK cryptography - Make use of GPU parallelism where applicable - Include tests - Be clearly documented - Include a readme file with simple instructions on how to to run the code - Contain basic code comments to explain what key functions do - Describe avenues for further research ### Browser or CLI code The code template contains boilerplate for running WGSL code in the browser and in the CLI via the Rust `wgpu` library. Participants may choose to use either or both approaches. Ideally the code should work in the browser but we understand if participants face browser issues that restrict them to only use the CLI. Nevertheless, WGSL code is easily portable and should work in either platform anyway.

    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