diff options
Diffstat (limited to 'private_key.go')
-rw-r--r-- | private_key.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/private_key.go b/private_key.go index ae5b90a..5e32ca8 100644 --- a/private_key.go +++ b/private_key.go @@ -1,6 +1,7 @@ package main import ( + "crypto" "crypto/elliptic" "crypto/ecdsa" "crypto/rand" @@ -15,7 +16,9 @@ import ( ) type ( - PrivateKey interface {} + PrivateKey interface { + Public() crypto.PublicKey + } CreateFlags struct { CryptType string // rsa or ecdsa |