aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/operation_pack.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-12-30 17:08:25 -0500
committerSteve Moyer <smoyer1@selesy.com>2022-12-30 17:08:25 -0500
commitde6f5404e403bff0124d76124964a6c6d05b2332 (patch)
treeebc77b74de763ba05281f859a8e151ef7a600f3d /entity/dag/operation_pack.go
parent7c4a3b12c1b519611b13ca3f05158440d45e728e (diff)
downloadgit-bug-de6f5404e403bff0124d76124964a6c6d05b2332.tar.gz
fix: keyrings must return keys with entities/identities
Diffstat (limited to 'entity/dag/operation_pack.go')
-rw-r--r--entity/dag/operation_pack.go7
1 files changed, 7 insertions, 0 deletions
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 }(),
},