diff --git a/Cargo.toml b/Cargo.toml index 737e718..42d2ad3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "threshold_crypto" # REMINDER: Update version in `README.md` when incrementing: -version = "0.2.1" +version = "0.3.0" authors = [ "Vladimir Komendantskiy ", "Andreas Fackler ", diff --git a/README.md b/README.md index 38ce56a..4777ae6 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,7 @@ An [official security audit](https://github.com/poanetwork/wiki/wiki/Threshold-C ```toml [dependencies] -rand = "0.4" -threshold_crypto = { version = "0.2", git = "https://github.com/poanetwork/threshold_crypto" } +threshold_crypto = { version = "0.3", git = "https://github.com/poanetwork/threshold_crypto" } ``` `main.rs`: @@ -36,8 +35,8 @@ use threshold_crypto::SecretKey; /// Very basic secret key usage. fn main() { - let sk0: SecretKey = rand::random(); - let sk1: SecretKey = rand::random(); + let sk0 = SecretKey::random(); + let sk1 = SecretKey::random(); let pk0 = sk0.public_key(); diff --git a/src/lib.rs b/src/lib.rs index b7863b6..4955007 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -706,8 +706,8 @@ mod tests { #[test] fn test_simple_sig() { - let sk0: SecretKey = random(); - let sk1: SecretKey = random(); + let sk0 = SecretKey::random(); + let sk1 = SecretKey::random(); let pk0 = sk0.public_key(); let msg0 = b"Real news"; let msg1 = b"Fake news";