num_traits:: -> algebra::

This commit is contained in:
Pratyush Mishra
2020-01-18 18:06:46 -08:00
parent 722a901ae7
commit 40cf13b7b8
10 changed files with 10 additions and 10 deletions

View File

@@ -372,7 +372,7 @@ mod test {
merkle_tree::*,
};
use algebra::curves::jubjub::JubJubAffine as JubJub;
use num_traits::Zero;
use algebra::Zero;
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;

View File

@@ -60,7 +60,7 @@ mod test {
fn test_gm17() {
use crate::nizk::{gm17::Gm17, NIZK};
use algebra::{curves::bls12_381::Bls12_381, fields::bls12_381::Fr};
use num_traits::One;
use algebra::One;
use r1cs_core::{ConstraintSynthesizer, ConstraintSystem, SynthesisError};
#[derive(Copy, Clone)]

View File

@@ -6,7 +6,7 @@ use algebra::{
to_bytes, ToConstraintField, UniformRand,
};
use digest::Digest;
use num_traits::{One, Zero};
use algebra::{One, Zero};
use rand::Rng;
use std::{
hash::Hash,

View File

@@ -837,7 +837,7 @@ mod test {
use super::{AllocatedBit, Boolean};
use crate::{prelude::*, test_constraint_system::TestConstraintSystem};
use algebra::{fields::bls12_381::Fr, BitIterator, Field, PrimeField, UniformRand};
use num_traits::{One, Zero};
use algebra::{One, Zero};
use r1cs_core::ConstraintSystem;
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;

View File

@@ -345,7 +345,7 @@ mod test {
use super::UInt32;
use crate::{bits::boolean::Boolean, test_constraint_system::TestConstraintSystem};
use algebra::fields::bls12_381::Fr;
use num_traits::{One, Zero};
use algebra::{One, Zero};
use r1cs_core::ConstraintSystem;
use rand::{Rng, SeedableRng};
use rand_xorshift::XorShiftRng;

View File

@@ -8,7 +8,7 @@ use algebra::{
},
BitIterator, Field, PrimeField,
};
use num_traits::One;
use algebra::One;
use std::{borrow::Borrow, marker::PhantomData};
use crate::{prelude::*, Assignment};

View File

@@ -3,7 +3,7 @@ use algebra::{
fields::Field,
BitIterator, ProjectiveCurve,
};
use num_traits::One;
use algebra::One;
use r1cs_core::{ConstraintSystem, SynthesisError};
use crate::{

View File

@@ -5,7 +5,7 @@ use algebra::{
},
AffineCurve, BitIterator, Field, PrimeField, ProjectiveCurve,
};
use num_traits::{One, Zero};
use algebra::{One, Zero};
use r1cs_core::{ConstraintSystem, SynthesisError};
use std::{borrow::Borrow, marker::PhantomData, ops::Neg};

View File

@@ -5,7 +5,7 @@ use algebra::{
},
BitIterator, Field,
};
use num_traits::{One, Zero};
use algebra::{One, Zero};
use r1cs_core::{ConstraintSystem, SynthesisError};

View File

@@ -60,7 +60,7 @@ mod test {
// use rand;
use crate::test_constraint_system::TestConstraintSystem;
use algebra::{BitIterator, Field};
use num_traits::One;
use algebra::One;
use r1cs_core::ConstraintSystem;
#[test]