Skip to content

Commit 8195ee6

Browse files
committed
Align to dependencies
1 parent f6c5b13 commit 8195ee6

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ We love your input! We want to make contributing to this project as easy and tra
99
- Becoming a maintainer
1010

1111
## We Develop with Github
12+
1213
We use GitHub to host code, to track issues and feature requests, and to accept Pull Requests.
1314

14-
## Report Bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues)
15+
## Report Bugs using Github's Issue Tracker
1516

1617
If you find bugs, mistakes, or inconsistencies in this project's code or documents, please let us know by [opening a new issue](./issues), but consider searching through existing issues first to check and see if the problem has already been reported. If it has, it never hurts to add a quick "+1" or "I have this problem too". This helps prioritize the most common problems and requests.
1718

@@ -24,12 +25,12 @@ If you find bugs, mistakes, or inconsistencies in this project's code or documen
2425
- A quick summary and/or background
2526
- Steps to reproduce
2627
- Be specific!
27-
- Give sample code if you can. [The stackoverflow bug report](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing
28+
- Give sample code if you can. [The stackoverflow bug report](http://stackoverflow.com/q/12488905/180626) includes sample code that _anyone_ with a base R setup can run to reproduce what I was seeing
2829
- What you expected would happen
2930
- What actually happens
3031
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
3132

32-
People *love* thorough bug reports. I'm not even kidding.
33+
People _love_ thorough bug reports. I'm not even kidding.
3334

3435
## Submit Code Changes through Pull Requests
3536

@@ -39,9 +40,9 @@ We ask that more significant improvements to the project be first proposed befor
3940

4041
### Use a Consistent Coding Style
4142

42-
* We indent using two spaces (soft tabs)
43-
* We ALWAYS put spaces after list items and method parameters ([1, 2, 3], not [1,2,3]), around operators (x += 1, not x+=1), and around hash arrows.
44-
* This is open-source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers the goal is to make the ride as smooth as possible.
43+
- We indent using two spaces (soft tabs)
44+
- We ALWAYS put spaces after list items and method parameters ([1, 2, 3], not [1,2,3]), around operators (x += 1, not x+=1), and around hash arrows.
45+
- This is open-source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers the goal is to make the ride as smooth as possible.
4546

4647
### Use [Github Flow](https://guides.github.com/introduction/flow/index.html) for Pull Requests
4748

@@ -61,5 +62,6 @@ In short, when you submit code changes, your submissions are understood to be av
6162
## References
6263

6364
Portions of this CONTRIBUTING.md document were adopted from best practices of a number of open source projects, including:
64-
* [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
65-
* [IPFS Contributing](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
65+
66+
- [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
67+
- [IPFS Contributing](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sskr"
3-
version = "0.6.0"
4-
edition = "2021"
3+
version = "0.7.0"
4+
edition = "2024"
55
description = "Sharded Secret Key Reconstruction (SSKR) for Rust."
66
authors = ["Blockchain Commons"]
77
repository = "https://github.com/BlockchainCommons/bc-sskr-rust"
@@ -12,8 +12,8 @@ keywords = ["cryptography"] # Up to five
1212
categories = ["cryptography"] # https://crates.io/category_slugs
1313

1414
[dependencies]
15-
bc-rand = "^0.3.0"
16-
bc-shamir = "^0.6.0"
15+
bc-rand = "^0.4.0"
16+
bc-shamir = "^0.7.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 @@ Sharded Secret Key Reconstruction (SSKR) is a protocol for splitting a _secret_
1414

1515
```toml
1616
[dependencies]
17-
sskr = "0.6.0"
17+
sskr = "0.7.0"
1818
```
1919

2020
## Specification

src/lib.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/sskr/0.6.0")]
1+
#![doc(html_root_url = "https://docs.rs/sskr/0.7.0")]
22
#![warn(rust_2018_idioms)]
33

44
//! # Introduction
@@ -9,7 +9,7 @@
99
//!
1010
//! ```toml
1111
//! [dependencies]
12-
//! sskr = "0.6.0"
12+
//! sskr = "0.7.0"
1313
//! ```
1414
//!
1515
//! # Example
@@ -88,9 +88,9 @@ pub use error::SSKRError;
8888
#[cfg(test)]
8989
mod tests {
9090
use super::*;
91-
use bc_rand::{rng_next_in_closed_range, RandomNumberGenerator};
91+
use bc_rand::{ rng_next_in_closed_range, RandomNumberGenerator };
9292
use hex_literal::hex;
93-
use rand::{CryptoRng, RngCore};
93+
use rand::{ CryptoRng, RngCore };
9494

9595
#[derive(Debug)]
9696
struct FakeRandomNumberGenerator;
@@ -436,7 +436,10 @@ mod tests {
436436

437437
const TEXT: &str = "my secret belongs to me.";
438438
let secret = Secret::new(TEXT).unwrap();
439-
let spec = Spec::new(1, vec![GroupSpec::new(2, 3).unwrap(), GroupSpec::new(2, 3).unwrap()]).unwrap();
439+
let spec = Spec::new(
440+
1,
441+
vec![GroupSpec::new(2, 3).unwrap(), GroupSpec::new(2, 3).unwrap()]
442+
).unwrap();
440443
let groupd_shares: Vec<Vec<Vec<u8>>> = sskr_generate(&spec, &secret).unwrap();
441444
let flattened_shares = groupd_shares.into_iter().flatten().collect::<Vec<Vec<u8>>>();
442445
// The group threshold is 1, but we're providing an additional share from the second group.

0 commit comments

Comments
 (0)