sm9/bn256: add comment for gfpNeg

This commit is contained in:
Sun Yimin 2023-06-21 09:02:09 +08:00 committed by GitHub
parent 5d101fb431
commit 2da0a9cebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ func gfpNeg(c, a *gfP) {
for i, pi := range p2 {
c[i], carry = bits.Sub64(pi, a[i], carry)
}
// really required
// required for "zero", bn256 treat infinity point as valid
gfpCarry(c, 0)
}