[−][src]Crate sharks
Fast, small and secure Shamir's Secret Sharing library crate
Usage example
// Configure algorithm with minimum 3 shares to recover secret and security level 12 let shamir = sharks::SecretShares::new(3, 12).unwrap(); // Generate 3 shares for the 12345 secret let shares = shamir.iter_shares(12345).unwrap().take(3).collect(); // Recover the secret from the shares let secret = shamir.secret_from(&shares).unwrap(); assert_eq!(secret, 12345);
Structs
SecretShares | Generate new Shamir's secret shares or recover secrets from them. |