Skip to main content

split

Function split 

Source
pub fn split(secret: &[u8], k: usize, n: usize) -> Result<Vec<Share>, String>
Expand description

Split secret into n shares, any k of which reconstruct it. k in 1..=n, n in 1..=255. Each secret byte gets an independent random degree-(k-1) polynomial with that byte as the constant term.