Threshold secret sharing (source code)

= Threshold secret sharing

An $(r,s)$ threshold secret-sharing scheme issues $s$ shares: every collection of at least $r$ shares reconstructs the secret, while every collection of fewer than $r$ shares has a distribution independent of the secret.