diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-04-09 19:21:51 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-04-09 19:21:51 +0200 |
commit | d7277eca5c0171744fd6fb479604e53b89896387 (patch) | |
tree | efb1c6083ca74360a49245628ef840eb15c2ada0 | |
parent | f28109fc32c9068cf57619ccd7ee05a8da8e5d24 (diff) |
curve: -minor refactor
-rw-r--r-- | curve/ed25519.go | 9 |
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) |