pub fn split( secret: &[u8], threshold: usize, num_shares: usize, ) -> ShamirResult<Vec<Share>>
Split a secret into N shares with threshold M.
Any M shares can reconstruct the secret, but M-1 or fewer reveal nothing.