Function tbs::combine_valid_shares
source · pub fn combine_valid_shares<I>(
sig_shares: I,
threshold: usize
) -> BlindedSignaturewhere
I: IntoIterator<Item = (usize, BlindedSignatureShare)>,
I::IntoIter: Clone + ExactSizeIterator,
Expand description
Combines a sufficient amount of valid blinded signature shares to a blinded signature. The responsibility of verifying the supplied shares lies with the caller.
sig_shares
: an iterator yielding pairs of key indices and signature shares from said keythreshold
: number of shares needed to combine a signature
§Panics
If the amount of shares supplied is less than the necessary amount