#srs #cryptography #trusted-setup

no-std bin+lib ark-srs

A utility crate that simplifies reuse of Common/Structured Reference String (CRS/SRS) from past trusted setup ceremonies, especially for SNARK

6 releases

0.3.3 Sep 15, 2025
0.3.2 Apr 20, 2024
0.2.0 Apr 12, 2024
0.1.0 Mar 8, 2024

#6 in #srs

Download history 1611/week @ 2025-09-22 1974/week @ 2025-09-29 3412/week @ 2025-10-06 2005/week @ 2025-10-13 1442/week @ 2025-10-20 1991/week @ 2025-10-27 2753/week @ 2025-11-03 2936/week @ 2025-11-10 4366/week @ 2025-11-17 1340/week @ 2025-11-24 3664/week @ 2025-12-01 1865/week @ 2025-12-08 1963/week @ 2025-12-15 303/week @ 2025-12-22 597/week @ 2025-12-29 1178/week @ 2026-01-05

4,052 downloads per month

MIT license

29KB
470 lines

ark-srs

Use Common/Structured Reference String (CRS/SRS) from existing ceremonies with ease with arkworks types.

WARNING: This is work in progress, none of the code has been audited. The library is NOT ready for production.

Download SRS to local

  • Aztec's ignition: ./scripts/download_transcripts_aztec.sh NUM where NUM can be 0..19 (NUM=2 means download transcript 0, 1, 2)
    • 100.8 million BN254 G1 points in total, split up into 20 files, each transcript file contains ~5 million points (~307 MB in size)
    • 2 BN254 G2 points are in the first transcript file
    • If you only need degree<=1,048,584, you will be directly using one of cached binary files in Released Assets (auto-downloaded when you run setup()).

Usage

Our convention for module organization for different SRS is: <scheme>::<ceremony_name>::setup().

Here's an example of using Aztec's SRS for KZG over BN254 curve:

use ark_bn254::Bn254;
use ark_poly::univariate::DenseUVPolynomial;
use ark_srs;

// simulated CRS (for test only)
let pp = KZG10::<Bn254, DenseUVPolynomial<<Bn254 as PairingEngine>::Fr>>::setup(max_degree, false, &mut rng)?;

// now, use Aztec's CRS
let pp = ark_srs::kzg10::aztec20::setup(supported_degree)?;

Dependencies

~15–30MB
~317K SLoC