Function sss_rs::wrapped_sharing::share_to_writables[][src]

pub fn share_to_writables<'a>(
    secret: Secret,
    dests: &mut Vec<Box<dyn Write + 'a>>,
    shares_required: u8,
    shares_to_create: u8,
    verify: bool
) -> Result<(), Error>
Expand description

Shares all the shares to individual writable destinations.

This iterates through the secret and calculates the share lists in chunks and writes the shares to their respective destinations

verify: If true, a hash is calculated from the secret and placed at the end to be used to verify reconstruction of the secret.