Update optate.go

This commit is contained in:
Alvarez 2025-08-21 17:37:32 +02:00 committed by GitHub
parent 70d3507f9e
commit 03e22fec8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ package bn256
func lineFunctionAdd(r, p *twistPoint, q *curvePoint, r2 *gfP2) (a, b, c *gfP2, rOut *twistPoint) { func lineFunctionAdd(r, p *twistPoint, q *curvePoint, r2 *gfP2) (a, b, c *gfP2, rOut *twistPoint) {
// See the mixed addition algorithm from "Faster Computation of the // See the mixed addition algorithm from "Faster Computation of the
// Tate Pairing", http://arxiv.org/pdf/0904.0854v3.pdf // Tate Pairing", <https://arxiv.org/pdf/0904.0854v3.pdf>.
B := (&gfP2{}).Mul(&p.x, &r.t) B := (&gfP2{}).Mul(&p.x, &r.t)
D := (&gfP2{}).Add(&p.y, &r.z) D := (&gfP2{}).Add(&p.y, &r.z)