Merge pull request #113 from Eirik0/edition-2018-clean-up

Edition 2018 clean up
This commit is contained in:
str4d
2019-08-24 00:34:57 +01:00
committed by GitHub
56 changed files with 128 additions and 212 deletions

View File

@@ -4,6 +4,7 @@ version = "0.0.0"
authors = [
"Jack Grigg <jack@z.cash>",
]
edition = "2018"
[dependencies]
bellman = { path = "../bellman" }

View File

@@ -1,11 +1,3 @@
extern crate bellman;
extern crate ff;
extern crate pairing;
extern crate rand_core;
extern crate rand_xorshift;
extern crate zcash_primitives;
extern crate zcash_proofs;
use bellman::groth16::*;
use ff::Field;
use pairing::bls12_381::{Bls12, Fr};

View File

@@ -159,7 +159,7 @@ mod test {
for length in 0..751 {
for _ in 0..5 {
let mut input: Vec<bool> = (0..length).map(|_| rng.next_u32() % 2 != 0).collect();
let input: Vec<bool> = (0..length).map(|_| rng.next_u32() % 2 != 0).collect();
let mut cs = TestConstraintSystem::<Bls12>::new();

View File

@@ -1,20 +1,3 @@
extern crate bellman;
extern crate blake2b_simd;
extern crate byteorder;
extern crate ff;
extern crate pairing;
extern crate rand_os;
extern crate zcash_primitives;
#[cfg(feature = "local-prover")]
extern crate directories;
#[cfg(test)]
extern crate rand_core;
#[cfg(test)]
extern crate rand_xorshift;
use bellman::groth16::{prepare_verifying_key, Parameters, PreparedVerifyingKey, VerifyingKey};
use pairing::bls12_381::Bls12;
use std::fs::File;