parallel and batch_normalize (#129)

use a macro to remove redundant code

add a test case
This commit is contained in:
Srinath Setty
2023-01-31 11:03:38 -08:00
committed by GitHub
parent 746af53e08
commit 74501936c3
2 changed files with 211 additions and 221 deletions

View File

@@ -169,6 +169,7 @@ fn main() {
);
// produce public parameters
let start = Instant::now();
println!("Producing public parameters...");
let pp = PublicParams::<
G1,
@@ -176,6 +177,8 @@ fn main() {
MinRootCircuit<<G1 as Group>::Scalar>,
TrivialTestCircuit<<G2 as Group>::Scalar>,
>::setup(circuit_primary, circuit_secondary.clone());
println!("PublicParams::setup, took {:?} ", start.elapsed());
println!(
"Number of constraints per step (primary circuit): {}",
pp.num_constraints().0