I sometimes have found myself with a Vec<(Fr, SignatureShare)> and trying to pass that to PublicKeySet::combine_signatures doesn't work. Instead, it is necessary to convert it to Vec<Fr, &SignatureShare> first with another loop (or to a BTreeMap).
This PR makes it possible for caller to use either BTreeMap<Fr, SignatureShare> or Vec<(Fr, SignatureShare)> interchangeably.
I changed one of the test cases to use a Vec, so that this usage is tested.
I sometimes have found myself with a Vec<(Fr, SignatureShare)> and trying to pass that to PublicKeySet::combine_signatures doesn't work. Instead, it is necessary to convert it to Vec<Fr, &SignatureShare> first with another loop (or to a BTreeMap).
This PR makes it possible for caller to use either BTreeMap<Fr, SignatureShare> or Vec<(Fr, SignatureShare)> interchangeably.
I changed one of the test cases to use a Vec, so that this usage is tested.