fix generate verifier command line args
This commit is contained in:
parent
82592ae2e7
commit
f182648aa4
@ -23,21 +23,17 @@ use bellman_ce::pairing::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// let args: Vec<String> = std::env::args().collect();
|
let args: Vec<String> = std::env::args().collect();
|
||||||
// if args.len() != 3 {
|
if args.len() != 3 {
|
||||||
// println!("Usage: \n<params> <out_contract.sol>");
|
println!("Usage: \n<params> <out_contract.sol>");
|
||||||
// std::process::exit(exitcode::USAGE);
|
std::process::exit(exitcode::USAGE);
|
||||||
// }
|
}
|
||||||
// let params_filename = &args[1];
|
let params_filename = &args[1];
|
||||||
// let verifier_filename = &args[2];
|
let verifier_filename = &args[2];
|
||||||
|
|
||||||
let params_filename = "circom4.params";
|
|
||||||
let verifier_filename = "verifier.sol";
|
|
||||||
|
|
||||||
let should_filter_points_at_infinity = false;
|
let should_filter_points_at_infinity = false;
|
||||||
let bytes = include_bytes!("../verifier_groth.sol");
|
let bytes = include_bytes!("../verifier_groth.sol");
|
||||||
let template = String::from_utf8_lossy(bytes);
|
let template = String::from_utf8_lossy(bytes);
|
||||||
//print!("{}", String::from_utf8_lossy(bytes));
|
|
||||||
|
|
||||||
let reader = OpenOptions::new()
|
let reader = OpenOptions::new()
|
||||||
.read(true)
|
.read(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user