mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
parent
345364d4ec
commit
42b55fd117
4 changed files with 5 additions and 15 deletions
|
|
@ -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());
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue