diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-12-30 17:08:25 -0500 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-12-30 17:08:25 -0500 |
commit | de6f5404e403bff0124d76124964a6c6d05b2332 (patch) | |
tree | ebc77b74de763ba05281f859a8e151ef7a600f3d | |
parent | 7c4a3b12c1b519611b13ca3f05158440d45e728e (diff) | |
download | git-bug-de6f5404e403bff0124d76124964a6c6d05b2332.tar.gz |
fix: keyrings must return keys with entities/identities
-rw-r--r-- | entity/dag/operation_pack.go | 7 |
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 }(), }, |