Skip to main content

recover_seed

Function recover_seed 

Source
pub fn recover_seed(shares: &[Vec<u8>]) -> Result<Vec<u8>, BackupError>
Expand description

Reconstruct a seed from a set of Shamir shares (≥ 2 of the 3).

Every share must be SHAMIR_SHARE_LEN bytes with a nonzero x; fewer than two distinct x values is below threshold. Each is a BackupError::Format.