mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-11 16:31:28 +01:00
Use PrimeField as generic bound across the codebase (#67)
Co-authored-by: Cesar Descalzo <cesar.descalzo2@gmail.com> Co-authored-by: Antonio Mejías Gil <anmegi.95@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
||||
use ark_circom::{read_zkey, CircomReduction, WitnessCalculator};
|
||||
use ark_std::rand::thread_rng;
|
||||
|
||||
use ark_bn254::Bn254;
|
||||
use ark_bn254::{Bn254, Fr};
|
||||
use ark_groth16::Groth16;
|
||||
use wasmer::Store;
|
||||
|
||||
@@ -39,7 +39,7 @@ fn bench_groth(c: &mut Criterion, num_validators: u32, num_constraints: u32) {
|
||||
)
|
||||
.unwrap();
|
||||
let full_assignment = wtns
|
||||
.calculate_witness_element::<Bn254, _>(&mut store, inputs, false)
|
||||
.calculate_witness_element::<Fr, _>(&mut store, inputs, false)
|
||||
.unwrap();
|
||||
|
||||
let mut rng = thread_rng();
|
||||
|
||||
Reference in New Issue
Block a user