pub fn thresold_sanity(threshold: u8, number_of_shares: u8) -> i32
Expand description

Gives a threshold ‘sanity’ factor, given a threshold and number of shares 0 is ideal. Positive values represent the level of danger of loosing access to the secret. Negative values represent the level of danger of an attacker gaining it.