From 2298df2e7833d8c8e6db9f0f04b26baa6fd56789 Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Thu, 27 Feb 2020 00:13:08 -0800 Subject: [PATCH] Make benchmarks compile, and check them in CI --- cp-benches/benches/crypto_primitives/comm.rs | 2 +- cp-benches/benches/crypto_primitives/crh.rs | 2 +- cp-benches/benches/crypto_primitives/signature.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cp-benches/benches/crypto_primitives/comm.rs b/cp-benches/benches/crypto_primitives/comm.rs index b53f497..5c3645c 100644 --- a/cp-benches/benches/crypto_primitives/comm.rs +++ b/cp-benches/benches/crypto_primitives/comm.rs @@ -3,7 +3,7 @@ use rand; #[macro_use] extern crate criterion; -use algebra::{curves::edwards_bls12::EdwardsProjective as Edwards, UniformRand}; +use algebra::{edwards_bls12::EdwardsProjective as Edwards, UniformRand}; use criterion::Criterion; use crypto_primitives::commitment::{pedersen::*, CommitmentScheme}; diff --git a/cp-benches/benches/crypto_primitives/crh.rs b/cp-benches/benches/crypto_primitives/crh.rs index 24124b7..81a98d7 100644 --- a/cp-benches/benches/crypto_primitives/crh.rs +++ b/cp-benches/benches/crypto_primitives/crh.rs @@ -3,7 +3,7 @@ use rand; #[macro_use] extern crate criterion; -use algebra::curves::edwards_bls12::EdwardsProjective as Edwards; +use algebra::edwards_bls12::EdwardsProjective as Edwards; use criterion::Criterion; use crypto_primitives::crh::{pedersen::*, FixedLengthCRH}; diff --git a/cp-benches/benches/crypto_primitives/signature.rs b/cp-benches/benches/crypto_primitives/signature.rs index 2a517bc..2bca6e2 100644 --- a/cp-benches/benches/crypto_primitives/signature.rs +++ b/cp-benches/benches/crypto_primitives/signature.rs @@ -2,7 +2,7 @@ extern crate criterion; mod affine { - use algebra::curves::edwards_bls12::EdwardsAffine as Edwards; + use algebra::edwards_bls12::EdwardsAffine as Edwards; use blake2::Blake2s; use criterion::Criterion; use crypto_primitives::signature::{schnorr::*, SignatureScheme}; @@ -90,7 +90,7 @@ mod affine { } mod projective { - use algebra::curves::edwards_bls12::EdwardsProjective as Edwards; + use algebra::edwards_bls12::EdwardsProjective as Edwards; use blake2::Blake2s; use criterion::Criterion; use crypto_primitives::signature::{schnorr::*, SignatureScheme};