Skip to content

Commit b197f51

Browse files
jwasingershekhirin
authored andcommitted
crypto/bls12381: docs - fix broken links to references (ethereum#26095)
1 parent ef676eb commit b197f51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crypto/bls12381/g1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (g *G1) Affine(p *PointG1) *PointG1 {
247247

248248
// Add adds two G1 points p1, p2 and assigns the result to point at first argument.
249249
func (g *G1) Add(r, p1, p2 *PointG1) *PointG1 {
250-
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#addition-add-2007-bl
250+
// www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-add-2007-bl
251251
if g.IsZero(p1) {
252252
return r.Set(p2)
253253
}
@@ -295,7 +295,7 @@ func (g *G1) Add(r, p1, p2 *PointG1) *PointG1 {
295295

296296
// Double doubles a G1 point p and assigns the result to the point at first argument.
297297
func (g *G1) Double(r, p *PointG1) *PointG1 {
298-
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
298+
// http://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
299299
if g.IsZero(p) {
300300
return r.Set(p)
301301
}

crypto/bls12381/g2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func (g *G2) Affine(p *PointG2) *PointG2 {
267267

268268
// Add adds two G2 points p1, p2 and assigns the result to point at first argument.
269269
func (g *G2) Add(r, p1, p2 *PointG2) *PointG2 {
270-
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#addition-add-2007-bl
270+
// http://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-add-2007-bl
271271
if g.IsZero(p1) {
272272
return r.Set(p2)
273273
}
@@ -315,7 +315,7 @@ func (g *G2) Add(r, p1, p2 *PointG2) *PointG2 {
315315

316316
// Double doubles a G2 point p and assigns the result to the point at first argument.
317317
func (g *G2) Double(r, p *PointG2) *PointG2 {
318-
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
318+
// http://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
319319
if g.IsZero(p) {
320320
return r.Set(p)
321321
}

0 commit comments

Comments
 (0)