arnaucube
arnaucube/circom-compatPublic Self-hosted repository
fix: minor feature-dependant warnings (#2)

fix of warnings for certain features
Carlos Pérez 37264926+CPerezz@users.noreply.github.com
Mon, 12 Aug 2024 17:24:49 +0200
commit

5eee3aed7e847172de37619c69745bca4afcd187

parent

a8b03b56e1818897c28b9fdc811ad65d48f2d06c

3 files changed, 5 insertions(+), 3 deletions(-)

jump to
M Cargo.toml → Cargo.toml

@@ -19,7 +19,7 @@

# 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"] }

@@ -50,6 +50,7 @@

[[bench]] name = "groth16" harness = false + [features] default = ["wasmer/default", "circom-2", "ethereum"]
M src/circom/circuit.rs → 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;
M src/witness/circom.rs → src/witness/circom.rs

@@ -28,6 +28,7 @@ fn get_fr_len(&self) -> Result<u32>;

fn get_ptr_raw_prime(&self) -> Result<u32>; } +#[cfg(feature = "circom-2")] pub trait Circom2 { fn get_field_num_len32(&self) -> Result<u32>; fn get_raw_prime(&self) -> Result<()>;