proof-aggregation/workflow/src/bin/gen_input.rs

21 lines
622 B
Rust
Raw Normal View History

2024-11-14 09:31:32 +00:00
use plonky2::plonk::config::GenericConfig;
use anyhow::Result;
use proof_input::json::export_circ_input_to_json;
use proof_input::gen_input::gen_testing_circuit_input;
use proof_input::params::Params;
use proof_input::params::{D, F};
fn main() -> Result<()> {
// Load the parameters from environment variables
let params = Params::from_env()?;
// generate circuit input with given parameters
let circ_input = gen_testing_circuit_input::<F,D>(&params.test);
// export circuit parameters to json file
let filename= "input.json";
export_circ_input_to_json(circ_input, filename)?;
Ok(())
}