Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
9a4e8e22
Unverified
Commit
9a4e8e22
authored
Nov 03, 2022
by
jwasinger
Committed by
GitHub
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/bls12381: docs - fix broken links to references (#26095)
parent
f3a005f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
g1.go
crypto/bls12381/g1.go
+2
-2
g2.go
crypto/bls12381/g2.go
+2
-2
No files found.
crypto/bls12381/g1.go
View file @
9a4e8e22
...
...
@@ -247,7 +247,7 @@ func (g *G1) Affine(p *PointG1) *PointG1 {
// Add adds two G1 points p1, p2 and assigns the result to point at first argument.
func
(
g
*
G1
)
Add
(
r
,
p1
,
p2
*
PointG1
)
*
PointG1
{
//
http://www.hyperelliptic.org/EFD/g
p/auto-shortw-jacobian-0.html#addition-add-2007-bl
//
www.hyperelliptic.org/EFD/g1
p/auto-shortw-jacobian-0.html#addition-add-2007-bl
if
g
.
IsZero
(
p1
)
{
return
r
.
Set
(
p2
)
}
...
...
@@ -295,7 +295,7 @@ func (g *G1) Add(r, p1, p2 *PointG1) *PointG1 {
// Double doubles a G1 point p and assigns the result to the point at first argument.
func
(
g
*
G1
)
Double
(
r
,
p
*
PointG1
)
*
PointG1
{
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
// http://www.hyperelliptic.org/EFD/g
1
p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
if
g
.
IsZero
(
p
)
{
return
r
.
Set
(
p
)
}
...
...
crypto/bls12381/g2.go
View file @
9a4e8e22
...
...
@@ -267,7 +267,7 @@ func (g *G2) Affine(p *PointG2) *PointG2 {
// Add adds two G2 points p1, p2 and assigns the result to point at first argument.
func
(
g
*
G2
)
Add
(
r
,
p1
,
p2
*
PointG2
)
*
PointG2
{
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#addition-add-2007-bl
// http://www.hyperelliptic.org/EFD/g
1
p/auto-shortw-jacobian-0.html#addition-add-2007-bl
if
g
.
IsZero
(
p1
)
{
return
r
.
Set
(
p2
)
}
...
...
@@ -315,7 +315,7 @@ func (g *G2) Add(r, p1, p2 *PointG2) *PointG2 {
// Double doubles a G2 point p and assigns the result to the point at first argument.
func
(
g
*
G2
)
Double
(
r
,
p
*
PointG2
)
*
PointG2
{
// http://www.hyperelliptic.org/EFD/gp/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
// http://www.hyperelliptic.org/EFD/g
1
p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
if
g
.
IsZero
(
p
)
{
return
r
.
Set
(
p
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment