mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +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
|
||||
.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());
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ed25519-dalek"
|
||||
version = "2.0.0-rc.3"
|
||||
version = "2.0.0"
|
||||
edition = "2021"
|
||||
authors = [
|
||||
"isis lovecruft <isis@patternsinthevoid.net>",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue