diff --git a/givre/src/signing/aggregate.rs b/givre/src/signing/aggregate.rs index f065008..8743a8e 100644 --- a/givre/src/signing/aggregate.rs +++ b/givre/src/signing/aggregate.rs @@ -130,10 +130,12 @@ pub fn aggregate( .map(|(_j, _comm, sig_share)| sig_share.0) .sum(); - Ok(Signature { + let sig = Signature { r: C::normalize_point(group_commitment), z, - }) + }; + sig.verify(&C::normalize_point(key_info.shared_public_key), msg) + .map_err(|_| Reason::InvalidSig)?; } /// Aggregation error