Update librustzcash crate to use ff crate

This commit is contained in:
Jack Grigg 2019-01-03 22:05:06 +00:00
parent 00983c48cd
commit 07955092f3
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
6 changed files with 10 additions and 7 deletions

1
Cargo.lock generated
View File

@ -227,6 +227,7 @@ dependencies = [
"bellman 0.1.0",
"blake2-rfc 0.2.18 (git+https://github.com/gtank/blake2-rfc?rev=7a5b5fc99ae483a0043db7547fb79a6fa44b88a9)",
"byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"ff 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)",
"pairing 0.14.2",

View File

@ -15,6 +15,7 @@ crate-type = ["staticlib"]
[dependencies]
bellman = { path = "../bellman" }
ff = "0.4"
libc = "0.2"
pairing = { path = "../pairing" }
lazy_static = "1"

View File

@ -1,6 +1,7 @@
extern crate bellman;
extern crate blake2_rfc;
extern crate byteorder;
extern crate ff;
extern crate libc;
extern crate pairing;
extern crate rand;
@ -13,10 +14,8 @@ mod hashreader;
#[macro_use]
extern crate lazy_static;
use pairing::{
bls12_381::{Bls12, Fr, FrRepr},
BitIterator, PrimeField, PrimeFieldRepr,
};
use ff::{BitIterator, PrimeField, PrimeFieldRepr};
use pairing::bls12_381::{Bls12, Fr, FrRepr};
use sapling_crypto::{
circuit::multipack,

View File

@ -1,5 +1,5 @@
use ff::{PrimeField, PrimeFieldRepr};
use pairing::bls12_381::Bls12;
use pairing::{PrimeField, PrimeFieldRepr};
use rand::{OsRng, Rng};
use sapling_crypto::jubjub::{edwards, JubjubBls12};
use sapling_crypto::primitives::{Diversifier, ViewingKey};

View File

@ -1,4 +1,5 @@
use pairing::{bls12_381::Bls12, PrimeField, PrimeFieldRepr};
use ff::{PrimeField, PrimeFieldRepr};
use pairing::bls12_381::Bls12;
use sapling_crypto::{
jubjub::{fs::FsRepr, FixedGenerators, JubjubEngine, JubjubParams},
primitives::{Diversifier, ProofGenerationKey},

View File

@ -1,4 +1,5 @@
use pairing::{bls12_381::Bls12, PrimeField, PrimeFieldRepr};
use ff::{PrimeField, PrimeFieldRepr};
use pairing::bls12_381::Bls12;
use sapling_crypto::{
jubjub::{FixedGenerators, JubjubEngine},
redjubjub::{PrivateKey, PublicKey, Signature},