Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Jul 26, 2024
1 parent 54a17cd commit ddac5e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/t_batch_verifier.nim
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ proc genForgedPair(batch: var seq[SignatureSet],
# 1. Create -S'. Note: if P has elliptic affine coordinates (x, y) then -P is (x, -y)
var neg_sigp = sigp
let neg_sigp_ptr = cast[ptr blst_p2_affine](neg_sigp.addr)
blst_fp2_cneg(toCV(neg_sigp_ptr[].y, cblst_fp2), toCC(neg_sigp_ptr[].y, cblst_fp2), 1)
blst_fp2_cneg(
toCV(neg_sigp_ptr[].y, cblst_fp2),
toCC(neg_sigp_ptr[].y, cblst_fp2),
flag = true)

# 2. Forge signatures S1+S' and S2-S'
var forgedSig1s, forgedSig2ns: Signature
Expand Down

0 comments on commit ddac5e6

Please sign in to comment.