Function sss_rs::wrapped_sharing::share_to_files[][src]

pub fn share_to_files<T: AsRef<Path>>(
    secret: Secret,
    dir: T,
    stem: &str,
    shares_required: u8,
    shares_to_create: u8,
    verify: bool
) -> Result<(), Error>
Expand description

Shares all the shares to separate files for distribution.This is a wrapper for the share_to_writables function.

Format: dir/stem.s<share_number>

stem: Defines the stem of the output files, they will be stem.s0, stem.s1, and so on..

dir: The directory to output the shares to.

If dir isn’t valid, the LAST invalid destination file’s error is returned.