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,