Skip to content

Commit 5f3c955

Browse files
committed
Merge #15: BIP Halfagg: Fix two inconsistencies
c3236ba BIP Halfagg: Match IncAggregate signature in Aggregate (Fabian Jahr) 544f123 Hacspec Halfagg: Match BIP340 challenge input to BIP (Fabian Jahr) Pull request description: ACKs for top commit: real-or-random: utACK c3236ba jonasnick: ACK c3236ba Tree-SHA512: 0e7f212a4c20c55757d6f29cf091c3ef6c444d0d10d10267191ddeeedddcb5638e577aa1f9d1b547b69a7d86c280d428bff8633f4bacdaa19aeb9776e46573f8
2 parents 949444a + c3236ba commit 5f3c955

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hacspec-halfagg/src/halfagg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn verify_aggregate(aggsig: &AggSig, pm_aggd: &Seq<(PublicKey, Message)>) ->
120120
VerifyResult::Err(Error::InvalidSignature)?;
121121
}
122122
let r = r_res.unwrap();
123-
let e = scalar_from_bytes(hash_challenge(rx, bytes_from_point(p), msg));
123+
let e = scalar_from_bytes(hash_challenge(rx, pk, msg));
124124
pmr[i] = (pk, msg, rx);
125125
let z = randomizer(&pmr, i);
126126
terms[2 * i] = (z, r);

half-aggregation.mediawiki

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ Input:
123123
124124
'''''Aggregate(pms<sub>0..u-1</sub>)''''':
125125
* Let ''aggsig = bytes(0)''
126-
* Return ''IncAggregate(aggsig, pms<sub>0..u-1</sub>)''; fail if that fails.
126+
* Let ''pm_aggd'' be an empty array
127+
* Return ''IncAggregate(aggsig, pm_aggd, pms<sub>0..u-1</sub>)''; fail if that fails.
127128
128129
==== IncAggregate ====
129130

0 commit comments

Comments
 (0)