diff --git a/hacspec-halfagg/src/halfagg.rs b/hacspec-halfagg/src/halfagg.rs index 074ac47..c68f757 100644 --- a/hacspec-halfagg/src/halfagg.rs +++ b/hacspec-halfagg/src/halfagg.rs @@ -120,7 +120,7 @@ pub fn verify_aggregate(aggsig: &AggSig, pm_aggd: &Seq<(PublicKey, Message)>) -> VerifyResult::Err(Error::InvalidSignature)?; } let r = r_res.unwrap(); - let e = scalar_from_bytes(hash_challenge(rx, bytes_from_point(p), msg)); + let e = scalar_from_bytes(hash_challenge(rx, pk, msg)); pmr[i] = (pk, msg, rx); let z = randomizer(&pmr, i); terms[2 * i] = (z, r); diff --git a/half-aggregation.mediawiki b/half-aggregation.mediawiki index 0fb7ab6..bb3ecec 100644 --- a/half-aggregation.mediawiki +++ b/half-aggregation.mediawiki @@ -123,7 +123,8 @@ Input: '''''Aggregate(pms<sub>0..u-1</sub>)''''': * Let ''aggsig = bytes(0)'' -* Return ''IncAggregate(aggsig, pms<sub>0..u-1</sub>)''; fail if that fails. +* Let ''pm_aggd'' be an empty array +* Return ''IncAggregate(aggsig, pm_aggd, pms<sub>0..u-1</sub>)''; fail if that fails. ==== IncAggregate ====