Skip to content

Commit

Permalink
Use curve25519-dalek instead of cryptoxide (#152)
Browse files Browse the repository at this point in the history
* Remove unneeded trait requirements

* Replace cryptoxide with curve25519-dalek

* fix conflicts

* clippy

* fmt

---------

Co-authored-by: Iraklis Leontiadis <iraklis@zengo.com>
  • Loading branch information
elichai and leontiadZen committed Mar 29, 2023
1 parent 7bdad5a commit 30e9380
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 204 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ name = "curv"
crate-type = ["lib"]

[dependencies]
cryptoxide = "0.1.2"
curve25519-dalek = "3"
digest = "0.9"
generic-array = "0.14"
Expand Down
2 changes: 1 addition & 1 deletion src/elliptic/curves/curve_ristretto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl ECPoint for RistrettoPoint {

fn neg_point(&self) -> RistrettoPoint {
RistrettoPoint {
purpose: "sub_point",
purpose: "neg_point",
ge: -self.ge,
}
}
Expand Down
Loading

0 comments on commit 30e9380

Please sign in to comment.