15 stable releases

Uses new Rust 2024

3.1.0 Oct 2, 2025
3.0.9 Oct 14, 2025
3.0.5 Sep 18, 2025
2.0.1 Sep 9, 2025
1.2.0 Jan 13, 2025

#13 in #sapling

Download history 472/week @ 2025-10-16 382/week @ 2025-10-23 267/week @ 2025-10-30 528/week @ 2025-11-06 346/week @ 2025-11-13 224/week @ 2025-11-20 420/week @ 2025-11-27 431/week @ 2025-12-04 134/week @ 2025-12-11 101/week @ 2025-12-18 64/week @ 2025-12-25 141/week @ 2026-01-01 185/week @ 2026-01-08 162/week @ 2026-01-15 91/week @ 2026-01-22 115/week @ 2026-01-29

568 downloads per month
Used in 16 crates (3 directly)

MIT/Apache

1MB
19K SLoC

MASP circuits and proofs.

masp_proofs contains the zk-SNARK circuits used by MASP based on Zcash Sapling, and the APIs for creating and verifying proofs.

GPU acceleration

CUDA and OpenCL backends are supported via bellperson. To enable them, set the RUSTFLAGS environment variable to --cfg $backend, where $backend assumes the following values:

  • masp_proof_backend_cuda for CUDA.
  • masp_proof_backend_opencl for OpenCL.

These cfg flags are mutually exclusive.


masp_proofs

This library contains the zk-SNARK circuits for MASP, based on the circuits for Zcash Sapling, and the APIs for creating and verifying proofs.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~17–32MB
~467K SLoC