Refactor algebra API, split into algebra and algebra-core. (#100)

This commit is contained in:
Pratyush Mishra
2020-02-26 21:42:04 -08:00
committed by GitHub
parent d4896ade47
commit 8bf042a029
68 changed files with 417 additions and 572 deletions

View File

@@ -1,4 +1,4 @@
use algebra::PrimeField;
use algebra_core::PrimeField;
use r1cs_core::{ConstraintSystem, SynthesisError};
use crate::prf::PRFGadget;
@@ -499,7 +499,7 @@ impl<ConstraintF: PrimeField> PRFGadget<Blake2s, ConstraintF> for Blake2sGadget
#[cfg(test)]
mod test {
use algebra::fields::bls12_377::fr::Fr;
use algebra::jubjub::Fq as Fr;
use digest::{FixedOutput, Input};
use rand::{Rng, SeedableRng};
use rand_xorshift::XorShiftRng;

View File

@@ -1,4 +1,4 @@
use algebra::Field;
use algebra_core::Field;
use core::fmt::Debug;
use crate::prf::PRF;

View File

@@ -1,4 +1,4 @@
use algebra::bytes::{FromBytes, ToBytes};
use algebra_core::bytes::{FromBytes, ToBytes};
use core::{fmt::Debug, hash::Hash};
use crate::CryptoError;