Browse Source

num_traits:: -> algebra::

master
Pratyush Mishra 5 years ago
parent
commit
40cf13b7b8
10 changed files with 10 additions and 10 deletions
  1. +1
    -1
      crypto-primitives/src/merkle_tree/mod.rs
  2. +1
    -1
      crypto-primitives/src/nizk/mod.rs
  3. +1
    -1
      crypto-primitives/src/signature/schnorr/mod.rs
  4. +1
    -1
      r1cs-std/src/bits/boolean.rs
  5. +1
    -1
      r1cs-std/src/bits/uint32.rs
  6. +1
    -1
      r1cs-std/src/fields/fp12.rs
  7. +1
    -1
      r1cs-std/src/groups/curves/short_weierstrass/bls12/mod.rs
  8. +1
    -1
      r1cs-std/src/groups/curves/short_weierstrass/mod.rs
  9. +1
    -1
      r1cs-std/src/groups/curves/twisted_edwards/mod.rs
  10. +1
    -1
      r1cs-std/src/pairing/mod.rs

+ 1
- 1
crypto-primitives/src/merkle_tree/mod.rs

@ -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;

+ 1
- 1
crypto-primitives/src/nizk/mod.rs

@ -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)]

+ 1
- 1
crypto-primitives/src/signature/schnorr/mod.rs

@ -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,

+ 1
- 1
r1cs-std/src/bits/boolean.rs

@ -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;

+ 1
- 1
r1cs-std/src/bits/uint32.rs

@ -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;

+ 1
- 1
r1cs-std/src/fields/fp12.rs

@ -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};

+ 1
- 1
r1cs-std/src/groups/curves/short_weierstrass/bls12/mod.rs

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

+ 1
- 1
r1cs-std/src/groups/curves/short_weierstrass/mod.rs

@ -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};

+ 1
- 1
r1cs-std/src/groups/curves/twisted_edwards/mod.rs

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

+ 1
- 1
r1cs-std/src/pairing/mod.rs

@ -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]

Loading…
Cancel
Save