Function halo2_base::utils::fs::read_params
source · [−]pub fn read_params(k: u32) -> ParamsKZG<Bn256>
Expand description
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.
k
: degree that expresses the size of circuit (i.e., 2^k is the number of rows in the circuit)