diff --git a/go/src/gopenpgpwrapper/gopenpgpwrapper.go b/go/src/gopenpgpwrapper/gopenpgpwrapper.go index 9c7999a..1e93bed 100644 --- a/go/src/gopenpgpwrapper/gopenpgpwrapper.go +++ b/go/src/gopenpgpwrapper/gopenpgpwrapper.go @@ -10,7 +10,11 @@ import ( ) type Key struct { - kr crypto.KeyRing + if len(k.kr.GetEntities()) > 0 { + return k.kr.GetEntities()[0].PrimaryKey.KeyIdShortString() + } else { + return "" + } } func (k *Key) GetKeyID() string {