From c5547905d07648d69f0b1492602fbf3a34f0c496 Mon Sep 17 00:00:00 2001 From: Michael Rosenberg Date: Sun, 5 Dec 2021 11:48:33 -0500 Subject: [PATCH] Fixed curve-bench compile error (#83) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed benchmarking compile error * Updated CHANGELOG * patch `algebra-test-templates` due to breaking changes since the last release Co-authored-by: Marcin Górny --- CHANGELOG.md | 1 + Cargo.toml | 1 + curve-benches/src/macros/ec.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf68a2f..aa7152e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Pending - [\#76](https://github.com/arkworks-rs/curves/pull/76) twisted Edwards parameters for bls12-377 +- Fixed curve benches ### Breaking changes diff --git a/Cargo.toml b/Cargo.toml index 25ae943..4a96390 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,3 +62,4 @@ debug = true ark-ec = { git = "https://github.com/arkworks-rs/algebra" } ark-ff = { git = "https://github.com/arkworks-rs/algebra" } ark-serialize = { git = "https://github.com/arkworks-rs/algebra" } +ark-algebra-test-templates = { git = "https://github.com/arkworks-rs/algebra" } diff --git a/curve-benches/src/macros/ec.rs b/curve-benches/src/macros/ec.rs index 2820c21..5711d01 100644 --- a/curve-benches/src/macros/ec.rs +++ b/curve-benches/src/macros/ec.rs @@ -234,7 +234,7 @@ macro_rules! ec_bench { .map(|_| Fr::rand(&mut rng).into_repr()) .collect(); b.bench_n(1, |b| { - b.iter(|| ark_ec::msm::VariableBaseMSM::multi_scalar_mul(&v, &scalars)); + b.iter(|| ark_ec::msm::VariableBase::msm(&v, &scalars)); }) }