pub fn gen_srs(k: u32) -> ParamsKZG<Bn256>
Expand description

Generates the SRS for the KZG scheme and writes it to a file found in “./params/kzg_bn2_{k}.srsor{dir}/kzg_bn254_{k}.srsifPARAMS_DIR` env var is specified, creates a file it if it does not exist”

  • k: degree that expresses the size of circuit (i.e., 2^k is the number of rows in the circuit)