Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Jun 7, 2024
1 parent ad38788 commit 0ef944f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type HashFactory interface {
Hash() hash.Hash
}

// HashablePoint is an interface implemented by n
// HashablePoint is an interface implemented by some curves
type HashablePoint interface {
Hash([]byte) Point
}
2 changes: 1 addition & 1 deletion internal/test/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func SchemeTesting(t *testing.T, s sign.Scheme) {
})
}

// AggregationTesting test an aggrgatable scheme
// AggregationTesting tests an aggregatable scheme
func AggregationTesting(t *testing.T, s sign.AggregatableScheme) {
t.Run("Aggregation valid", func(tt *testing.T) {
msg := []byte("Hello Boneh-Lynn-Shacham")
Expand Down
2 changes: 1 addition & 1 deletion pairing/bn254/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (c *curvePoint) Neg(a *curvePoint) {
c.t = gfP{0}
}

// Clone makes a hard copy of the curve point
// Clone makes a deep copy of the curve point
func (c *curvePoint) Clone() *curvePoint {
n := &curvePoint{}
copy(n.x[:], c.x[:])
Expand Down
2 changes: 1 addition & 1 deletion pairing/bn254/gfp12.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (e *gfP12) Invert(a *gfP12) *gfP12 {
return e
}

// Clone makes a hard copy of the field
// Clone makes a deep copy of the field
func (e *gfP12) Clone() *gfP12 {
n := &gfP12{}
n.x = e.x.Clone()
Expand Down
2 changes: 1 addition & 1 deletion pairing/bn254/gfp2.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (e *gfP2) Invert(a *gfP2) *gfP2 {
return e
}

// Clone makes a hard copy of the field
// Clone makes a deep copy of the field
func (e *gfP2) Clone() gfP2 {
n := gfP2{}
copy(n.x[:], e.x[:])
Expand Down
2 changes: 1 addition & 1 deletion pairing/bn254/gfp6.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (e *gfP6) Invert(a *gfP6) *gfP6 {
return e
}

// Clone makes a hard copy of the field
// Clone makes a deep copy of the field
func (e *gfP6) Clone() gfP6 {
n := gfP6{
x: e.x.Clone(),
Expand Down
2 changes: 1 addition & 1 deletion pairing/bn256/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (c *curvePoint) Neg(a *curvePoint) {
c.t = gfP{0}
}

// Clone makes a hard copy of the curve point
// Clone makes a deep copy of the curve point
func (c *curvePoint) Clone() *curvePoint {
n := &curvePoint{}
copy(n.x[:], c.x[:])
Expand Down

0 comments on commit 0ef944f

Please sign in to comment.