Module fs

Source
Expand description

Module for reading parameters for Halo2 proving system from the file system.

Functions§

gen_srs
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”
read_or_create_srs
Attempts to read the srs from a file found in ./params/kzg_bn254_{k}.srs or {dir}/kzg_bn254_{k}.srs if PARAMS_DIR env var is specified, creates a file it if it does not exist.
read_params
Reads the srs from a file found in ./params/kzg_bn254_{k}.srs or {dir}/kzg_bn254_{k}.srs if PARAMS_DIR env var is specified.