Skip to content

Commit

Permalink
Verify signature in aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Apr 19, 2024
1 parent 916380b commit 7237478
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions givre/src/signing/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ pub fn aggregate<C: Ciphersuite>(
.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
Expand Down

0 comments on commit 7237478

Please sign in to comment.