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

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