Update dalek version

This commit is contained in:
Stephen Akridge
2020-04-27 09:33:33 -07:00
committed by Trent Nelson
parent 3d40ca86b0
commit eb24f3df84
25 changed files with 98 additions and 216 deletions

View File

@@ -42,15 +42,15 @@ memmap = { version = "0.7.0", optional = true }
num-derive = { version = "0.3" }
num-traits = { version = "0.2" }
pbkdf2 = { version = "0.3.0", default-features = false }
rand = { version = "0.6.5", optional = true }
rand_chacha = { version = "0.1.1", optional = true }
rand = { version = "0.7.0", optional = true }
rand_chacha = { version = "0.2.2", optional = true }
serde = "1.0.106"
serde_bytes = "0.11"
serde_derive = "1.0.103"
serde_json = { version = "1.0.51", optional = true }
sha2 = "0.8.1"
thiserror = "1.0"
ed25519-dalek = { version = "=1.0.0-pre.1", optional = true }
ed25519-dalek = { version = "=1.0.0-pre.3", optional = true }
solana-crate-features = { path = "../crate-features", version = "1.2.0", optional = true }
solana-logger = { path = "../logger", version = "1.2.0", optional = true }
solana-sdk-macro = { path = "macro", version = "1.2.0" }

View File

@@ -28,7 +28,7 @@ impl Keypair {
/// Return a new ED25519 keypair
pub fn new() -> Self {
let mut rng = OsRng::new().unwrap();
let mut rng = OsRng::default();
Self::generate(&mut rng)
}
@@ -64,7 +64,7 @@ impl Signature {
}
pubkey
.unwrap()
.verify(message_bytes, &signature.unwrap())
.verify_strict(message_bytes, &signature.unwrap())
.is_ok()
}
}