Skip to content

Commit 544f123

Browse files
committed
Hacspec Halfagg: Match BIP340 challenge input to BIP
1 parent 949444a commit 544f123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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);

0 commit comments

Comments
 (0)