Browse Source

fix: minor feature-dependant warnings (#2)

fix of warnings for certain features
pull/3/head
Carlos Pérez 2 months ago
committed by GitHub
parent
commit
5eee3aed7e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions
  1. +2
    -1
      Cargo.toml
  2. +2
    -2
      src/circom/circuit.rs
  3. +1
    -0
      src/witness/circom.rs

+ 2
- 1
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"]

+ 2
- 2
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;

+ 1
- 0
src/witness/circom.rs

@ -28,6 +28,7 @@ pub trait Circom {
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<()>;

Loading…
Cancel
Save