Function combine_shares

Source
pub fn combine_shares(
    x_i_list: &[(NonZeroScalar, usize)],
    s_i_list: &[Scalar],
    public_key: &ProjectivePoint,
) -> Option<Scalar>
Expand description

Helper method to combine the secret shares into the private key You can use all the shares or the threshold number of shares to combine the private key

ยงArguments

  • x_i_list - List of (x_i, rank_i) pairs

  • s_i_list - List of s_i (secret shares of the parties)