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<()>;