mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-11 16:31:30 +01:00
Refactor algebra API, split into algebra and algebra-core. (#100)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use algebra::Field;
|
||||
use algebra_core::Field;
|
||||
use core::fmt::Debug;
|
||||
|
||||
use crate::prf::PRF;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use algebra::bytes::{FromBytes, ToBytes};
|
||||
use algebra_core::bytes::{FromBytes, ToBytes};
|
||||
use core::{fmt::Debug, hash::Hash};
|
||||
|
||||
use crate::CryptoError;
|
||||
|
||||
Reference in New Issue
Block a user