From de6f5404e403bff0124d76124964a6c6d05b2332 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Fri, 30 Dec 2022 17:08:25 -0500 Subject: fix: keyrings must return keys with entities/identities --- entity/dag/operation_pack.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'entity') diff --git a/entity/dag/operation_pack.go b/entity/dag/operation_pack.go index 08907623..cc6c81f4 100644 --- a/entity/dag/operation_pack.go +++ b/entity/dag/operation_pack.go @@ -373,6 +373,13 @@ func (pk PGPKeyring) KeysById(id uint64) []openpgp.Key { result = append(result, openpgp.Key{ PublicKey: key.Public(), PrivateKey: key.Private(), + Entity: &openpgp.Entity{ + PrimaryKey: key.Public(), + PrivateKey: key.Private(), + Identities: map[string]*openpgp.Identity{ + "": {}, + }, + }, SelfSignature: &packet.Signature{ IsPrimaryId: func() *bool { b := true; return &b }(), }, -- cgit