aboutsummaryrefslogtreecommitdiff
path: root/pub.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-10-23 18:47:36 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-10-23 18:47:36 +0200
commit5b1f187c7a3515a8335a134364929f6e0bbef1f5 (patch)
tree168c353969c87772468d70d7c35aca9b59ccf026 /pub.go
parentbb4dbe34df4907c123bae0f34eb3786d244b4480 (diff)
Simplify interface
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) }