msm-webgpu

Crates.iomsm-webgpu
lib.rsmsm-webgpu
version0.1.0
created_at2025-05-19 15:59:53.56311+00
updated_at2025-05-19 15:59:53.56311+00
descriptionMulti-Scalar Multiplication (MSM) implementation for WebGPU.
homepage
repositoryhttps://github.com/ICME-Lab/msm-webgpu
max_upload_size
id1679945
size340,410
Wyatt Benno (wyattbenno777)

documentation

README

ICME WebGPU MSM

An implementation of the cuZK paper in Rust for Multi-Scalar Multiplication (MSM) over the BN254 curve for WebGPU.

For an introduction to ZK proving using WebGPU, see this recent post by zkSecurity.

This work is built upon the existing ZPrize 2023 submission by Tal Derei and Koh Wei Jie. Their documentation will largely serve as a documentation for this implementation, too.

Further reads on the optimisations applied:

Test

For $2^{16}$ MSMs:

wasm-pack test --chrome --test test_webgpu_msm_cuzk_16

For $2^{17}$ MSMs:

wasm-pack test --chrome --test test_webgpu_msm_cuzk_17

For $2^{18}$ MSMs:

wasm-pack test --chrome --test test_webgpu_msm_cuzk_18

For $2^{19}$ MSMs:

wasm-pack test --chrome --test test_webgpu_msm_cuzk_19

For $2^{20}$ MSMs:

wasm-pack test --chrome --test test_webgpu_msm_cuzk_20

Future work

  • Implement cuzk on other curves.

  • Implement cuzk on other libraries other than halo2curves, such as arkworks.

  • Explore the trade-off between the running time and the extra storage space needed by parallel Pippenger algorithm on webGPU as the paper Elastic MSM suggests.

Commit count: 113

cargo fmt