Crates.io | ark-srs |
lib.rs | ark-srs |
version | 0.3.2 |
source | src |
created_at | 2024-03-08 16:59:17.183273 |
updated_at | 2024-04-20 12:32:03.719477 |
description | A utility crate that simplifies reuse of Common/Structured Reference String (CRS/SRS) from past trusted setup ceremonies, especially for SNARK |
homepage | https://github.com/alxiong/ark-srs |
repository | https://github.com/alxiong/ark-srs |
max_upload_size | |
id | 1167113 |
size | 64,338 |
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.
./scripts/download_transcripts_aztec.sh NUM
where NUM
can be 0..19
(NUM=2
means download transcript 0, 1, 2
)
degree<=1,048,584
, you will be directly using one of cached binary files in Released Assets (auto-downloaded when you run setup()
).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)?;