split

Function split 

Source
pub fn split(
    secret: &[u8],
    threshold: usize,
    num_shares: usize,
) -> ShamirResult<Vec<Share>>
Expand description

Split a secret into N shares with threshold M.

Any M shares can reconstruct the secret, but M-1 or fewer reveal nothing.