Skip to content

Commit

Permalink
Fix subtraction (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Varlakov authored Aug 7, 2021
1 parent 09c9f04 commit 02d683d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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]

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "curv-kzen"
version = "0.8.0-rc2"
version = "0.8.0-rc3"
edition = "2018"
authors = [
"Omer Shlomovits",
Expand Down
6 changes: 3 additions & 3 deletions src/elliptic/curves/wrappers/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ matrix! {
(o_<> Point<E>, Point<E>), (o_<> Point<E>, &Point<E>),
(o_<> Point<E>, Generator<E>),

(_o<> &Point<E>, Point<E>), (r_<> &Point<E>, &Point<E>),
(r_<> &Point<E>, Point<E>), (r_<> &Point<E>, &Point<E>),
(r_<> &Point<E>, Generator<E>),

(_o<> Generator<E>, Point<E>), (r_<> Generator<E>, &Point<E>),
(r_<> Generator<E>, Point<E>), (r_<> Generator<E>, &Point<E>),
(r_<> Generator<E>, Generator<E>),
}
}
Expand Down Expand Up @@ -222,7 +222,7 @@ matrix! {
point_assign_fn = sub_assign,
pairs = {
(o_<> Scalar<E>, Scalar<E>), (o_<> Scalar<E>, &Scalar<E>),
(_o<> &Scalar<E>, Scalar<E>), (r_<> &Scalar<E>, &Scalar<E>),
(r_<> &Scalar<E>, Scalar<E>), (r_<> &Scalar<E>, &Scalar<E>),
}
}

Expand Down

0 comments on commit 02d683d

Please sign in to comment.