22 breaking releases

0.23.0 Aug 3, 2025
0.22.0 Feb 24, 2025
0.21.0 Dec 19, 2024
0.20.0 Jul 18, 2024
0.3.0 Nov 5, 2021

#5 in #msm

Download history 28/week @ 2025-08-11 80/week @ 2025-08-18 335/week @ 2025-08-25 197/week @ 2025-09-01 142/week @ 2025-09-08 288/week @ 2025-09-15 182/week @ 2025-09-22 213/week @ 2025-09-29 118/week @ 2025-10-06 68/week @ 2025-10-13 118/week @ 2025-10-20 54/week @ 2025-10-27 69/week @ 2025-11-03 130/week @ 2025-11-10 188/week @ 2025-11-17 38/week @ 2025-11-24

425 downloads per month
Used in 19 crates

Apache-2.0

150KB
3.5K SLoC

A collection of utilities used by our other libraries in this workspace.

  • Pedersen commitment
  • Elgamal encryption, including Hashed Elgamal
  • finite field utilities like inner product, weighted inner product, hadamard product, etc.
  • multiscalar multiplication (MSM) like Fixed Base MSM
  • polynomial utilities like multiplying polynomials, creating polynomial from roots, etc.
  • An efficient way to check several equality relations involving pairings by combining the relations in a random linear combination and doing a multi-pairing check. Relies on Schwartz–Zippel lemma.
  • An efficient way to check several equality relations involving scalar multiplications by combining the relations in a random linear combination and doing a single multi-scalar multiplication check. Relies on Schwartz–Zippel lemma.
  • hashing utilities like hashing arbitrary bytes to field element or group element.
  • solving discrete log using Baby Step Giant Step algorithm

Dependencies

~6–17MB
~197K SLoC