You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let mobile_number_secret = 9034218120;
let all_shares = tss.share(mobile_number_secret);
let recovered_share = 3;
assert!(recovered_share >= tss.reconstruct_limit());
let recovered_indices: Vec<usize> = (0..recovered_share).collect();
let recovered_shares: &[i64] = &all_shares[0..recovered_share];
// // reconstruct using remaining subset of shares
let reconstructed_secret = tss.reconstruct(&recovered_indices, recovered_shares);
assert_eq!(reconstructed_secret, mobile_number_secret);`
The text was updated successfully, but these errors were encountered:
`let ref tss = tss::shamir::ShamirSecretSharing {
threshold: 1,
share_count: 4,
prime : 11
};
// // reconstruct using remaining subset of shares
let reconstructed_secret = tss.reconstruct(&recovered_indices, recovered_shares);
assert_eq!(reconstructed_secret, mobile_number_secret);`
The text was updated successfully, but these errors were encountered: