arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
Fixed curve-bench compile error (#83)

* Fixed benchmarking compile error

* Updated CHANGELOG

* patch `algebra-test-templates` due to breaking changes since the last release

Co-authored-by: Marcin Górny <marcin.gorny.94@protonmail.com>
Michael Rosenberg micro@fastmail.com
Sun, 05 Dec 2021 11:48:33 -0500
commit

c5547905d07648d69f0b1492602fbf3a34f0c496

parent

f1e36c5bed4c55411ef4add0730e0f4be91847f5

3 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CHANGELOG.md → 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
M Cargo.toml → Cargo.toml

@@ -62,3 +62,4 @@ [patch.crates-io]

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" }
M curve-benches/src/macros/ec.rs → curve-benches/src/macros/ec.rs

@@ -234,7 +234,7 @@ let scalars: Vec<_> = (0..SAMPLES)

.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)); }) }