ed: Bump ed25519-dalek to 2.0.0 (#559)

* Made clippy happy
This commit is contained in:
Michael Rosenberg 2023-08-11 11:38:43 -04:00 committed by GitHub
parent 345364d4ec
commit 42b55fd117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 15 deletions

View file

@ -110,8 +110,8 @@ pub fn unsafe_target_feature_specialize(
let features: Vec<_> = attributes let features: Vec<_> = attributes
.lit() .lit()
.value() .value()
.split(",") .split(',')
.map(|feature| feature.replace(" ", "")) .map(|feature| feature.replace(' ', ""))
.collect(); .collect();
let name = format!("{}_{}", item_mod.ident, features.join("_")); let name = format!("{}_{}", item_mod.ident, features.join("_"));
let ident = syn::Ident::new(&name, item_mod.ident.span()); let ident = syn::Ident::new(&name, item_mod.ident.span());

View file

@ -970,7 +970,7 @@ impl VartimeMultiscalarMul for RistrettoPoint {
I::Item: Borrow<Scalar>, I::Item: Borrow<Scalar>,
J: IntoIterator<Item = Option<RistrettoPoint>>, 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) EdwardsPoint::optional_multiscalar_mul(scalars, extended_points).map(RistrettoPoint)
} }

View file

@ -1,6 +1,6 @@
[package] [package]
name = "ed25519-dalek" name = "ed25519-dalek"
version = "2.0.0-rc.3" version = "2.0.0"
edition = "2021" edition = "2021"
authors = [ authors = [
"isis lovecruft <isis@patternsinthevoid.net>", "isis lovecruft <isis@patternsinthevoid.net>",

View file

@ -5,20 +5,10 @@ verification.
# Use # Use
## Stable
To import `ed25519-dalek`, add the following to the dependencies section of To import `ed25519-dalek`, add the following to the dependencies section of
your project's `Cargo.toml`: your project's `Cargo.toml`:
```toml ```toml
ed25519-dalek = "1" ed25519-dalek = "2"
```
## 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"
``` ```
# Feature Flags # Feature Flags