Skip to main content

combine

Function combine 

Source
pub fn combine(shares: &[(u8, &[u8])], out: &mut [u8]) -> Result<()>
Expand description

Recover a secret from shares given as (index, bytes).

Pass at least threshold shares; more are fine. With fewer, the result is a wrong secret rather than an error – see the module note. Every share must be out.len() bytes, and indices must be nonzero and distinct; at least two shares are required.