aboutsummaryrefslogtreecommitdiff
path: root/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'pub.go')
-rw-r--r--pub.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pub.go b/pub.go
deleted file mode 100644
index 43b48f0..0000000
--- a/pub.go
+++ /dev/null
@@ -1,12 +0,0 @@
-package main
-
-import "golang.org/x/crypto/ed25519"
-
-type PubKey struct {
- PKAlg [2]byte
- KeyNum [KeyNumLen]byte
- PubKey [ed25519.PublicKeySize]byte
-}
-
-func (v *PubKey) Unmarshal(b []byte) error { return DecodeBase64(v, b) }
-func (v *PubKey) Marshal() ([]byte, error) { return EncodeBase64(v) }