mirror of
https://github.com/mii443/RustySecrets.git
synced 2025-08-22 16:25:32 +00:00
12 lines
270 B
Rust
12 lines
270 B
Rust
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();
|
|
}
|