Update zcash_primitives crate to use ff crate

This commit is contained in:
Jack Grigg
2019-01-06 09:31:20 +00:00
parent 2e408957db
commit 538de482f3
5 changed files with 6 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ authors = [
[dependencies]
byteorder = "1"
ff = "0.4"
lazy_static = "1"
pairing = { path = "../pairing" }
rand = "0.4"

View File

@@ -3,6 +3,7 @@ extern crate lazy_static;
extern crate blake2_rfc;
extern crate byteorder;
extern crate ff;
extern crate pairing;
extern crate rand;
extern crate sapling_crypto;

View File

@@ -1,8 +1,6 @@
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use pairing::{
bls12_381::{Bls12, Fr, FrRepr},
PrimeField, PrimeFieldRepr,
};
use ff::{PrimeField, PrimeFieldRepr};
use pairing::bls12_381::{Bls12, Fr, FrRepr};
use sapling_crypto::{
jubjub::{edwards, Unknown},
redjubjub::{PublicKey, Signature},

View File

@@ -1,6 +1,6 @@
use blake2_rfc::blake2b::Blake2b;
use byteorder::{LittleEndian, WriteBytesExt};
use pairing::{PrimeField, PrimeFieldRepr};
use ff::{PrimeField, PrimeFieldRepr};
use super::{
components::{Amount, Script, TxOut},