Skip to content

Commit

Permalink
ed: Bump ed25519-dalek to 2.0.0 (dalek-cryptography#559)
Browse files Browse the repository at this point in the history
* Made clippy happy
  • Loading branch information
rozbb authored Aug 11, 2023
1 parent 345364d commit 42b55fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions curve25519-dalek-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ pub fn unsafe_target_feature_specialize(
let features: Vec<_> = attributes
.lit()
.value()
.split(",")
.map(|feature| feature.replace(" ", ""))
.split(',')
.map(|feature| feature.replace(' ', ""))
.collect();
let name = format!("{}_{}", item_mod.ident, features.join("_"));
let ident = syn::Ident::new(&name, item_mod.ident.span());
Expand Down
2 changes: 1 addition & 1 deletion curve25519-dalek/src/ristretto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ impl VartimeMultiscalarMul for RistrettoPoint {
I::Item: Borrow<Scalar>,
J: IntoIterator<Item = Option<RistrettoPoint>>,
{
let extended_points = points.into_iter().map(|opt_P| opt_P.map(|P| P.borrow().0));
let extended_points = points.into_iter().map(|opt_P| opt_P.map(|P| P.0));

EdwardsPoint::optional_multiscalar_mul(scalars, extended_points).map(RistrettoPoint)
}
Expand Down
2 changes: 1 addition & 1 deletion ed25519-dalek/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ed25519-dalek"
version = "2.0.0-rc.3"
version = "2.0.0"
edition = "2021"
authors = [
"isis lovecruft <[email protected]>",
Expand Down
12 changes: 1 addition & 11 deletions ed25519-dalek/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@ verification.

# Use

## Stable

To import `ed25519-dalek`, add the following to the dependencies section of
your project's `Cargo.toml`:
```toml
ed25519-dalek = "1"
```

## Beta

To use the latest prerelease (see changes [below](#breaking-changes-in-200)),
use the following line in your project's `Cargo.toml`:
```toml
ed25519-dalek = "2.0.0-rc.3"
ed25519-dalek = "2"
```

# Feature Flags
Expand Down

0 comments on commit 42b55fd

Please sign in to comment.