aboutsummaryrefslogtreecommitdiff
path: root/curve
diff options
context:
space:
mode:
Diffstat (limited to 'curve')
-rw-r--r--curve/ed25519.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/curve/ed25519.go b/curve/ed25519.go
index 318c149..d1edc90 100644
--- a/curve/ed25519.go
+++ b/curve/ed25519.go
@@ -11,14 +11,13 @@ import (
ed "filippo.io/edwards25519"
)
-var Curve25519 = &c25519{}
-
-type Curve25519Scalar = scalar
-type Curve25519Point = point
-
type c25519 struct{}
type scalar ed.Scalar
type point ed.Point
+type Curve25519Scalar = scalar
+type Curve25519Point = point
+
+var Curve25519 = &c25519{}
var _ SomeScalar[*scalar] = (*scalar)(nil)
var _ SomePoint[*scalar, *scalar, *point] = (*point)(nil)