{"id":50311170,"url":"https://github.com/ICME-Lab/msm-webgpu","last_synced_at":"2026-06-14T12:01:11.650Z","repository":{"id":288141159,"uuid":"729257218","full_name":"ICME-Lab/msm-webgpu","owner":"ICME-Lab","description":"WebGPU MSM implementation","archived":false,"fork":false,"pushed_at":"2025-10-28T16:42:57.000Z","size":328,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T18:32:04.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ICME-Lab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-08T18:29:47.000Z","updated_at":"2025-10-28T16:43:01.000Z","dependencies_parsed_at":"2025-04-30T15:28:51.812Z","dependency_job_id":"1dfe0d97-deb3-4538-98d9-9fca4e5ef5a8","html_url":"https://github.com/ICME-Lab/msm-webgpu","commit_stats":null,"previous_names":["icme-lab/msm-webgpu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ICME-Lab/msm-webgpu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ICME-Lab%2Fmsm-webgpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ICME-Lab%2Fmsm-webgpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ICME-Lab%2Fmsm-webgpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ICME-Lab%2Fmsm-webgpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ICME-Lab","download_url":"https://codeload.github.com/ICME-Lab/msm-webgpu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ICME-Lab%2Fmsm-webgpu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34320273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T21:01:26.189Z","updated_at":"2026-06-14T12:01:11.640Z","avatar_url":"https://github.com/ICME-Lab.png","language":"Rust","funding_links":[],"categories":["Projects by GPU Technology"],"sub_categories":["WebGPU (Browser-Native)"],"readme":"# ICME WebGPU MSM\n\nAn implementation of the [cuZK paper](https://eprint.iacr.org/2022/1321.pdf) in Rust for Multi-Scalar Multiplication (MSM) over the BN254 curve for WebGPU.\n\nFor an introduction to ZK proving using WebGPU, see [this recent post](https://blog.zksecurity.xyz/posts/webgpu/) by zkSecurity.\n\nThis work is built upon the existing [ZPrize 2023 submission](https://github.com/td-kwj-zp2023/webgpu-msm-bls12-377) by Tal Derei and Koh Wei Jie. Their [documentation](https://hackmd.io/HNH0DcSqSka4hAaIfJNHEA) will largely serve as a documentation for this implementation, too. \n\nFurther reads on the optimisations applied:\n- [Optimizing Montgomery Multiplication in WebAssembly](https://baincapitalcrypto.com/optimizing-montgomery-multiplication-in-webassembly/) by Koh Wei Jie.\n- [Optimizing Barrett Reduction: Tighter Bounds Eliminate Redundant Subtractions](https://blog.zksecurity.xyz/posts/barrett-tighter-bound/) by Suneal Gong.\n- [Signed Bucket Indexes for Multi-Scalar Multiplication (MSM)](https://hackmd.io/@drouyang/signed-bucket-index) by drouyang.eth.\n\nMade with ❤️ by [ICME Labs](https://blog.icme.io/).\n\n\u003cimg width=\"983\" height=\"394\" alt=\"icme_labs\" src=\"https://github.com/user-attachments/assets/ffc334ed-c301-4ce6-8ca3-a565328904fe\" /\u003e\n\n## Test\n\n\nFor $2^{16}$ MSMs:\n```\nwasm-pack test --chrome --test test_webgpu_msm_cuzk_16\n```\n\nFor $2^{17}$ MSMs:\n```\nwasm-pack test --chrome --test test_webgpu_msm_cuzk_17\n```\n\nFor $2^{18}$ MSMs:\n```\nwasm-pack test --chrome --test test_webgpu_msm_cuzk_18\n```\n\nFor $2^{19}$ MSMs:\n```\nwasm-pack test --chrome --test test_webgpu_msm_cuzk_19\n```\n\nFor $2^{20}$ MSMs:\n```\nwasm-pack test --chrome --test test_webgpu_msm_cuzk_20\n```\n\n## Web Browser UI test\n\n```\nRUSTFLAGS=\"-C target-feature=+simd128\" wasm-pack build --target no-modules --release --out-dir www/pkg\n```\n\n```\ncd www\n```\n\n```\nnpm install\n```\n\n```\nnpx serve\n```\n\nOpen the browser and navigate to `http://localhost:3000`.\n\n\n\n## Future work\n\n- Implement cuzk on other curves.\n- Implement cuzk on other libraries other than `halo2curves`, such as `arkworks`.\n- Explore the trade-off between the running\ntime and the extra storage space needed by parallel Pippenger algorithm on webGPU as the paper [Elastic MSM](https://eprint.iacr.org/2024/057.pdf) suggests.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FICME-Lab%2Fmsm-webgpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FICME-Lab%2Fmsm-webgpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FICME-Lab%2Fmsm-webgpu/lists"}