Version 0.3.0
This commit is contained in:
parent
9ab09897bd
commit
dbb9fae896
|
@ -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 <komendantsky@gmail.com>",
|
||||
"Andreas Fackler <AndreasFackler@gmx.de>",
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue