diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-11-15 12:55:01 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-11-15 12:55:01 +0100 |
commit | 9d5358deb9cb52c850e91a282b27e98545f34ee6 (patch) | |
tree | 8ea3b659538a9ce4b99ac45a6739ea05fb237518 /curve | |
parent | de44f1a28bc8d14f5ae1aecc11edc0624a330ec4 (diff) |
simplify Product API
Diffstat (limited to 'curve')
-rw-r--r-- | curve/curve.go | 2 | ||||
-rw-r--r-- | curve/ed25519.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/curve/curve.go b/curve/curve.go index 5b41352..12f29c8 100644 --- a/curve/curve.go +++ b/curve/curve.go @@ -32,7 +32,7 @@ type SomeCurve[S SomeScalar[s], s Data, P SomePoint[S, s, p], p Data] interface Identity() P Generator() P - Product([]P) P + Product(...P) P Exp(S) P } diff --git a/curve/ed25519.go b/curve/ed25519.go index d1edc90..70c00fd 100644 --- a/curve/ed25519.go +++ b/curve/ed25519.go @@ -94,7 +94,7 @@ func (c *c25519) Generator() *point { return (*point)(ed.NewGeneratorPoint()) } -func (c *c25519) Product(pts []*point) (product *point) { +func (c *c25519) Product(pts ...*point) (product *point) { product = c.Identity() for _, p := range pts { product = product.Mul(p) |