From a4786baadfd0db944cab5c31fc5cb37006fc9733 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Dec 2013 12:19:38 -0800 Subject: [PATCH] Add PGPPacket._str_signature_packet This is not super useful without parsing the subpackets, but you can usually figure out what's being bound using the context: $ ./gpg-migrate.py F15F5BE8 6D024CA2 key: F15F5BE8 public: public-key packet: F15F5BE8 user id packet: William Trevor King signature packet: postitive user id and public-key packet signature packet: postitive user id and public-key packet ... user id packet: William Trevor King signature packet: postitive user id and public-key packet signature packet: postitive user id and public-key packet signature packet: postitive user id and public-key packet signature packet: generic user id and public-key packet signature packet: postitive user id and public-key packet public-subkey packet: 42407C74 signature packet: subkey binding ... The user id signatures are likely between the previous user id and F15F5BE8, with positive self-signed signatures and generic signatures from other folks. The subkey binding is likely between F15F5BE8 and 42407C74. Adding subpacket parsing to make this explicit would be nice, but it's not a priority at the moment. --- gpg-migrate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpg-migrate.py b/gpg-migrate.py index a2519f8..8e2e4fb 100755 --- a/gpg-migrate.py +++ b/gpg-migrate.py @@ -214,6 +214,9 @@ class PGPPacket (dict): def _str_generic_key_packet(self): return self['fingerprint'][-8:].upper() + def _str_signature_packet(self): + return self['signature-type'] + def _str_user_id_packet(self): return self['user'] -- 2.26.2