Recalculate the group key instead of serializing it

Solves an issue with promotion.
This commit is contained in:
Luke Parker
2022-08-13 03:00:16 -04:00
parent 73205c5f96
commit 6f776ff004
2 changed files with 23 additions and 11 deletions

View File

@@ -43,7 +43,6 @@ fn vectors_to_multisig_keys<C: Curve>(vectors: &Vectors) -> HashMap<u16, FrostKe
serialized.extend(u16::try_from(shares.len()).unwrap().to_be_bytes());
serialized.extend(i.to_be_bytes());
serialized.extend(shares[usize::from(i) - 1].to_repr().as_ref());
serialized.extend(&hex::decode(vectors.group_key).unwrap());
for share in &verification_shares {
serialized.extend(share.to_bytes().as_ref());
}