Blitzar is a C++ library from Space and Time that speeds zero-knowledge proof cryptography on CPUs and NVIDIA GPUs. Rust users typically consume it through the companion blitzar-rs crate.
Overview
Blitzar accelerates cryptographic workloads used in zero-knowledge proof systems, notably multi-scalar multiplication and inner product argument routines drawn from libsodium and zkcrypto code extended for CUDA GPUs.
It supports CPU and GPU backends, with GPU execution targeting NVIDIA hardware with a current driver. Prebuilt shared libraries and headers are published for glibc-based x86-64 Linux, and source builds expect Linux with CUDA 12.8-capable hardware.
Supported curves include Curve25519, bls12-381 G1, bn254 G1, and Grumpkin. The project bundles C++ sources, C bindings, and a Rust sys crate mirrored by the higher-level blitzar-rs project.
Benchmarks and examples cover Pedersen commitments and inner product proofs. Community feedback is welcomed via issues and Discord, while maintainers note pull requests are not open yet.
Key features
- CUDA GPU acceleration
- CPU fallback backend
- Multi-scalar multiplication
- Inner product argument proofs
- Multiple elliptic curves
- C++ with C and Rust bindings
- Published Linux shared libraries
- Benchmark suites for GPUs
Use cases
- Accelerating ZK proof cryptography on GPUs
- MSM operations in proof systems
- Embedding crypto primitives in C++ services
- Calling Blitzar from Rust via blitzar-rs