aboutsummaryrefslogtreecommitdiffstats
path: root/entity
diff options
context:
space:
mode:
Diffstat (limited to 'entity')
-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 }(),
},