mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-07 06:21:33 +01:00
fix: minor feature-dependant warnings (#2)
fix of warnings for certain features
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<()>;
|
||||
|
||||
Reference in New Issue
Block a user