From 8609549a9876e46a187311deeabd4ea4665e5ebd Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 7 Aug 2021 19:48:55 +0700 Subject: [PATCH 1/2] Fix subtraction --- Cargo.toml | 2 +- src/elliptic/curves/wrappers/arithmetic.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3a6d6003..f0397c74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curv-kzen" -version = "0.8.0-rc2" +version = "0.8.0-rc3" edition = "2018" authors = [ "Omer Shlomovits", diff --git a/src/elliptic/curves/wrappers/arithmetic.rs b/src/elliptic/curves/wrappers/arithmetic.rs index d25b7003..4a4d99bb 100644 --- a/src/elliptic/curves/wrappers/arithmetic.rs +++ b/src/elliptic/curves/wrappers/arithmetic.rs @@ -170,10 +170,10 @@ matrix! { (o_<> Point, Point), (o_<> Point, &Point), (o_<> Point, Generator), - (_o<> &Point, Point), (r_<> &Point, &Point), + (r_<> &Point, Point), (r_<> &Point, &Point), (r_<> &Point, Generator), - (_o<> Generator, Point), (r_<> Generator, &Point), + (r_<> Generator, Point), (r_<> Generator, &Point), (r_<> Generator, Generator), } } @@ -222,7 +222,7 @@ matrix! { point_assign_fn = sub_assign, pairs = { (o_<> Scalar, Scalar), (o_<> Scalar, &Scalar), - (_o<> &Scalar, Scalar), (r_<> &Scalar, &Scalar), + (r_<> &Scalar, Scalar), (r_<> &Scalar, &Scalar), } } From 688983c5178134028346444105f31fd3e8632b3d Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 7 Aug 2021 20:07:11 +0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a71033e5..3cb86829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.8.0-rc3 +* Fix point subtraction. Bug was introduced in `v0.8.0-rc1`. [#127] + +[#127]: https://github.com/ZenGo-X/curv/pull/127 + ## v0.8.0-rc2 * Remove dependency on `ring_algorithm` crate [#125], [#124]