rusty_secrets 0.2.2

Implementation of threshold Shamir's secret sharing in the Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate rusty_secrets;

use rusty_secrets::sss;

#[test]
#[should_panic(expected = "ThresholdTooBig")]
fn test_generate_invalid_k() {
    let share1 = "2-1-1YAYwmOHqZ69jA".to_string().into_bytes();

    sss::split_secret(10, 5, share1.as_slice(), true).unwrap();
}