commit
bbc1b8124d
1 changed files with 5 additions and 1 deletions
|
|
@ -14,7 +14,11 @@ type Key struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k *Key) GetKeyID() string {
|
func (k *Key) GetKeyID() string {
|
||||||
return k.kr.FirstKeyID
|
if len(k.kr.GetEntities()) > 0 {
|
||||||
|
return k.kr.GetEntities()[0].PrimaryKey.KeyIdShortString()
|
||||||
|
} else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k *Key) Encrypt(plaintext []byte, armor bool) []byte {
|
func (k *Key) Encrypt(plaintext []byte, armor bool) []byte {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue