Skip to main content

recover_share

Function recover_share 

Source
pub fn recover_share(
    surviving_shares: &[Cmp20Share],
    lost_party_idx: u32,
) -> Result<Cmp20Share, RecoverError>
Expand description

Recover a full Cmp20Share (scalar + public key + party index) from T surviving shares. The public key is taken from any surviving share (they all carry the same joint public key).