Skip to content

Commit e176aa3

Browse files
committed
Aligned to dependencies.
1 parent 857374b commit e176aa3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bc-shamir"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2021"
55
description = "Shamir's Secret Sharing (SSS) for Rust."
66
authors = ["Blockchain Commons"]
@@ -13,7 +13,7 @@ documentation = "https://docs.rs/bc-shamir"
1313

1414
[dependencies]
1515
bc-rand = "^0.2.0"
16-
bc-crypto = "^0.4.0"
16+
bc-crypto = "^0.5.0"
1717

1818
thiserror = "^1.0.48"
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a pure-Rust implementation of [Shamir's Secret Sharing (SSS)](https://en
1414

1515
```toml
1616
[dependencies]
17-
bc-shamir = "0.4.0"
17+
bc-shamir = "0.4.1"
1818
```
1919
## Related Projects
2020

src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/bc-shamir/0.4.0")]
1+
#![doc(html_root_url = "https://docs.rs/bc-shamir/0.4.1")]
22
#![warn(rust_2018_idioms)]
33

44
//! ## Introduction
@@ -16,7 +16,7 @@
1616
//!
1717
//! ```toml
1818
//! [dependencies]
19-
//! bc-shamir = "0.4.0"
19+
//! bc-shamir = "0.4.1"
2020
//!```
2121
//!
2222
//! ## Usage
@@ -78,7 +78,7 @@ mod tests {
7878
use super::*;
7979
use bc_rand::RandomNumberGenerator;
8080
use hex_literal::hex;
81-
use rand::RngCore;
81+
use rand::{CryptoRng, RngCore};
8282

8383
#[derive(Debug)]
8484
struct FakeRandomNumberGenerator;
@@ -101,6 +101,9 @@ mod tests {
101101
}
102102
}
103103

104+
// Testing purposes only!
105+
impl CryptoRng for FakeRandomNumberGenerator {}
106+
104107
impl RandomNumberGenerator for FakeRandomNumberGenerator {
105108
fn random_data(&mut self, size: usize) -> Vec<u8> {
106109
let mut b = vec![0u8; size];

0 commit comments

Comments
 (0)