diff options
Diffstat (limited to 'curve')
| -rw-r--r-- | curve/curve.go | 6 | ||||
| -rw-r--r-- | curve/ed25519.go | 6 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/curve/curve.go b/curve/curve.go index 75626bd..36c9eed 100644 --- a/curve/curve.go +++ b/curve/curve.go @@ -12,7 +12,7 @@ type Data interface {  type SomeScalar[S Data] interface {  	Add(S) S  	Sub(S) S -	Mult(S) S +	Mul(S) S  	Equal(S) bool  	// Maybe later: @@ -36,7 +36,7 @@ type SomeCurve[S SomeScalar[s], s Data, P SomePoint[S, s, p], p Data] interface  }  type SomePoint[S SomeScalar[s], s Data, P Data] interface { -	Mult(P) P +	Mul(P) P  	Div(P) P  	Inv() P  	Exp(S) P @@ -60,4 +60,4 @@ type APoint[S SomeScalar[s], s Data, P Data] interface {  	ScalarMult(S) P  	Equal(P) bool  } -*/
\ No newline at end of file +*/ diff --git a/curve/ed25519.go b/curve/ed25519.go index 6d7e1a0..3d0ba81 100644 --- a/curve/ed25519.go +++ b/curve/ed25519.go @@ -46,7 +46,7 @@ func (s *scalar) Sub(t *scalar) *scalar {  	return (*scalar)(new(ed.Scalar).Subtract((*ed.Scalar)(s), (*ed.Scalar)(t)))  } -func (s *scalar) Mult(t *scalar) *scalar { +func (s *scalar) Mul(t *scalar) *scalar {  	return (*scalar)(new(ed.Scalar).Multiply((*ed.Scalar)(s), (*ed.Scalar)(t)))  } @@ -89,7 +89,7 @@ func (c *c25519) Generator() *point {  func (c *c25519) Product(pts []*point) (product *point) {  	product = c.Identity()  	for _, p := range pts { -		product = product.Mult(p) +		product = product.Mul(p)  	}  	return product  } @@ -105,7 +105,7 @@ func (p *point) Bytes() []byte {  }  // Return p (*) q in group -func (p *point) Mult(q *point) *point { +func (p *point) Mul(q *point) *point {  	r := new(ed.Point).Add((*ed.Point)(p), (*ed.Point)(q))  	return (*point)(r)  }  | 
