[][src]Function sss_rs::raw_share::create_share_lists_from_secrets

pub fn create_share_lists_from_secrets(
    secret: &[u8],
    shares_required: u8,
    shares_to_create: u8
) -> Result<Vec<Vec<(u8, u8)>>, Error>

This is a wrapper around @create_share_from_secret that loops through the @secret slice and returns a vector of vectors, with each vector being all the shares for a single byte of the secret. The format this returns the secrets in is: share1byte1, share1byte2, share1byte3, ..., share1byte<share_lists.len()> share2byte1, share2byte2, share2byte3, ..., share2byte<share_lists.len()> since that is how they would be distributed. @secret: A slice of bytes to be used to create the vector of share vectors ... For the rest of the arguments, see @create_shares_from_secret