Update zcash_proofs crate to use ff crate
This commit is contained in:
parent
538de482f3
commit
00983c48cd
|
@ -448,6 +448,7 @@ version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bellman 0.1.0",
|
"bellman 0.1.0",
|
||||||
"byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
||||||
"pairing 0.14.2",
|
"pairing 0.14.2",
|
||||||
"rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"sapling-crypto 0.0.1",
|
"sapling-crypto 0.0.1",
|
||||||
|
|
|
@ -8,6 +8,7 @@ authors = [
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bellman = { path = "../bellman" }
|
bellman = { path = "../bellman" }
|
||||||
byteorder = "1"
|
byteorder = "1"
|
||||||
|
ff = "0.4"
|
||||||
pairing = { path = "../pairing" }
|
pairing = { path = "../pairing" }
|
||||||
rand = "0.4"
|
rand = "0.4"
|
||||||
sapling-crypto = { path = "../sapling-crypto" }
|
sapling-crypto = { path = "../sapling-crypto" }
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
extern crate bellman;
|
extern crate bellman;
|
||||||
extern crate byteorder;
|
extern crate byteorder;
|
||||||
|
extern crate ff;
|
||||||
extern crate pairing;
|
extern crate pairing;
|
||||||
extern crate rand;
|
extern crate rand;
|
||||||
extern crate sapling_crypto;
|
extern crate sapling_crypto;
|
||||||
|
|
|
@ -2,10 +2,8 @@ use bellman::groth16::{
|
||||||
create_random_proof, verify_proof, Parameters, PreparedVerifyingKey, Proof,
|
create_random_proof, verify_proof, Parameters, PreparedVerifyingKey, Proof,
|
||||||
};
|
};
|
||||||
use byteorder::{LittleEndian, ReadBytesExt};
|
use byteorder::{LittleEndian, ReadBytesExt};
|
||||||
use pairing::{
|
use ff::{Field, PrimeField, PrimeFieldRepr};
|
||||||
bls12_381::{Bls12, Fr, FrRepr},
|
use pairing::bls12_381::{Bls12, Fr, FrRepr};
|
||||||
Field, PrimeField, PrimeFieldRepr,
|
|
||||||
};
|
|
||||||
use rand::{OsRng, Rand};
|
use rand::{OsRng, Rand};
|
||||||
use sapling_crypto::{
|
use sapling_crypto::{
|
||||||
circuit::{
|
circuit::{
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
use bellman::groth16::{verify_proof, PreparedVerifyingKey, Proof};
|
use bellman::groth16::{verify_proof, PreparedVerifyingKey, Proof};
|
||||||
use pairing::{
|
use ff::Field;
|
||||||
bls12_381::{Bls12, Fr},
|
use pairing::bls12_381::{Bls12, Fr};
|
||||||
Field,
|
|
||||||
};
|
|
||||||
use sapling_crypto::{
|
use sapling_crypto::{
|
||||||
circuit::multipack,
|
circuit::multipack,
|
||||||
jubjub::{edwards, FixedGenerators, JubjubBls12, Unknown},
|
jubjub::{edwards, FixedGenerators, JubjubBls12, Unknown},
|
||||||
|
|
Loading…
Reference in New Issue