diff --git a/Cargo.toml b/Cargo.toml index aa789d0..96bfa2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ num-bigint = { version = "=0.4.3", default-features = false, features = ["rand"] # ZKP Generation ark-crypto-primitives = { version = "=0.4.0" } ark-ec = { version = "=0.4.1", default-features = false, features = ["parallel"] } -ark-ff = { version = "=0.4.1", default-features = false, features = ["parallel", "asm"] } +ark-ff = { version = "=0.4.1", default-features = false, features = ["asm", "parallel"] } ark-std = { version = "=0.4.0", default-features = false, features = ["parallel"] } ark-bn254 = { version = "=0.4.0" } ark-groth16 = { version = "=0.4.0", default-features = false, features = ["parallel"] } @@ -51,6 +51,7 @@ ethers = "=2.0.7" name = "groth16" harness = false + [features] default = ["wasmer/default", "circom-2", "ethereum"] wasm = ["wasmer/js-default"] diff --git a/src/circom/circuit.rs b/src/circom/circuit.rs index 5469e55..dc444a8 100644 --- a/src/circom/circuit.rs +++ b/src/circom/circuit.rs @@ -1,8 +1,8 @@ -use std::{collections::HashMap, f32::consts::E}; +use std::collections::HashMap; use ark_ff::PrimeField; use ark_relations::r1cs::{ - self, ConstraintSynthesizer, ConstraintSystemRef, LinearCombination, SynthesisError, Variable, + ConstraintSynthesizer, ConstraintSystemRef, LinearCombination, SynthesisError, Variable, }; use color_eyre::Result; diff --git a/src/witness/circom.rs b/src/witness/circom.rs index f9f5aed..9677432 100644 --- a/src/witness/circom.rs +++ b/src/witness/circom.rs @@ -28,6 +28,7 @@ pub trait Circom { fn get_ptr_raw_prime(&self) -> Result; } +#[cfg(feature = "circom-2")] pub trait Circom2 { fn get_field_num_len32(&self) -> Result; fn get_raw_prime(&self) -> Result<()>;