Update dalek (v1.0 bp) (#9765)

* Disable Move/Libra components

* Update dalek version

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
sakridge
2020-04-28 12:02:09 -07:00
committed by GitHub
parent 2f0f218ad9
commit 8698156e27
26 changed files with 1496 additions and 2937 deletions

View File

@@ -41,15 +41,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.104"
serde_bytes = "0.11"
serde_derive = "1.0.103"
serde_json = { version = "1.0.46", 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.0.20", optional = true }
solana-logger = { path = "../logger", version = "1.0.20", optional = true }
solana-sdk-macro = { path = "macro", version = "1.0.20" }

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()
}
}