r1cs-std works with no-std (#92)

This commit is contained in:
Marek Kotewicz
2020-02-05 22:55:38 +01:00
committed by GitHub
parent a77972bf9a
commit 9621bd34a4
21 changed files with 104 additions and 74 deletions

View File

@@ -17,7 +17,7 @@ use algebra::{
},
fields::{fp12_2over3over2::Fp12, BitIterator},
};
use std::marker::PhantomData;
use core::marker::PhantomData;
pub mod bls12_377;

View File

@@ -1,7 +1,7 @@
use crate::prelude::*;
use algebra::{Field, PairingEngine};
use core::fmt::Debug;
use r1cs_core::{ConstraintSystem, SynthesisError};
use std::fmt::Debug;
pub mod bls12;
pub use self::bls12::bls12_377;
@@ -57,8 +57,7 @@ pub trait PairingGadget<PairingE: PairingEngine, ConstraintF: Field> {
#[cfg(test)]
mod test {
// use rand;
use crate::test_constraint_system::TestConstraintSystem;
use crate::{test_constraint_system::TestConstraintSystem, Vec};
use algebra::{BitIterator, Field, One};
use r1cs_core::ConstraintSystem;
@@ -79,7 +78,7 @@ mod test {
prelude::*,
};
use algebra::curves::bls12_377::{Bls12_377, G1Projective, G2Projective};
use std::ops::Mul;
use core::ops::Mul;
let mut cs = TestConstraintSystem::<Fq>::new();