mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Merge branch 'release/0.9.0'
This commit is contained in:
commit
8c8c04cb32
3 changed files with 7 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ed25519-dalek"
|
name = "ed25519-dalek"
|
||||||
version = "1.0.0-pre.0"
|
version = "0.9.0"
|
||||||
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>"]
|
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "BSD-3-Clause"
|
license = "BSD-3-Clause"
|
||||||
|
|
@ -20,7 +20,7 @@ version = "1.0.0-pre.0"
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
[dependencies.rand]
|
[dependencies.rand]
|
||||||
version = "0.5"
|
version = "0.6"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["i128_support"]
|
features = ["i128_support"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ To install, add the following to your project's `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.ed25519-dalek]
|
[dependencies.ed25519-dalek]
|
||||||
version = "1"
|
version = "0.9"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, in your library or executable source, add:
|
Then, in your library or executable source, add:
|
||||||
|
|
@ -134,7 +134,7 @@ enabled by default, instead do:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.ed25519-dalek]
|
[dependencies.ed25519-dalek]
|
||||||
version = "1"
|
version = "0.9"
|
||||||
features = ["nightly"]
|
features = ["nightly"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -151,7 +151,7 @@ To enable [serde](https://serde.rs) support, build `ed25519-dalek` with:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.ed25519-dalek]
|
[dependencies.ed25519-dalek]
|
||||||
version = "1"
|
version = "0.9"
|
||||||
features = ["serde"]
|
features = ["serde"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -939,11 +939,10 @@ impl From<ExpandedSecretKey> for PublicKey {
|
||||||
/// use ed25519_dalek::PublicKey;
|
/// use ed25519_dalek::PublicKey;
|
||||||
/// use ed25519_dalek::Signature;
|
/// use ed25519_dalek::Signature;
|
||||||
/// use rand::thread_rng;
|
/// use rand::thread_rng;
|
||||||
/// use rand::ThreadRng;
|
|
||||||
/// use sha2::Sha512;
|
/// use sha2::Sha512;
|
||||||
///
|
///
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
/// let mut csprng: ThreadRng = thread_rng();
|
/// let mut csprng = thread_rng();
|
||||||
/// let keypairs: Vec<Keypair> = (0..64).map(|_| Keypair::generate::<Sha512, _>(&mut csprng)).collect();
|
/// let keypairs: Vec<Keypair> = (0..64).map(|_| Keypair::generate::<Sha512, _>(&mut csprng)).collect();
|
||||||
/// let msg: &[u8] = b"They're good dogs Brant";
|
/// let msg: &[u8] = b"They're good dogs Brant";
|
||||||
/// let messages: Vec<&[u8]> = (0..64).map(|_| msg).collect();
|
/// let messages: Vec<&[u8]> = (0..64).map(|_| msg).collect();
|
||||||
|
|
@ -1382,7 +1381,6 @@ mod test {
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use rand::ChaChaRng;
|
use rand::ChaChaRng;
|
||||||
use rand::SeedableRng;
|
use rand::SeedableRng;
|
||||||
use rand::ThreadRng;
|
|
||||||
use hex::FromHex;
|
use hex::FromHex;
|
||||||
use sha2::Sha512;
|
use sha2::Sha512;
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -1563,7 +1561,7 @@ mod test {
|
||||||
b"Fuck dumbin' it down, spit ice, skip jewellery: Molotov cocktails on me like accessories.",
|
b"Fuck dumbin' it down, spit ice, skip jewellery: Molotov cocktails on me like accessories.",
|
||||||
b"Hey, I never cared about your bucks, so if I run up with a mask on, probably got a gas can too.",
|
b"Hey, I never cared about your bucks, so if I run up with a mask on, probably got a gas can too.",
|
||||||
b"And I'm not here to fill 'er up. Nope, we came to riot, here to incite, we don't want any of your stuff.", ];
|
b"And I'm not here to fill 'er up. Nope, we came to riot, here to incite, we don't want any of your stuff.", ];
|
||||||
let mut csprng: ThreadRng = thread_rng();
|
let mut csprng = thread_rng();
|
||||||
let mut keypairs: Vec<Keypair> = Vec::new();
|
let mut keypairs: Vec<Keypair> = Vec::new();
|
||||||
let mut signatures: Vec<Signature> = Vec::new();
|
let mut signatures: Vec<Signature> = Vec::new();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue