From RFC 4880 [1]:
(8-octet Key ID)
The OpenPGP Key ID of the key issuing the signature.
[1]: http://tools.ietf.org/search/rfc4880#section-5.2.3.5
lines.append(' {}'.format(subpacket['type']))
return '\n'.join(lines)
+ def _str_issuer_signature_subpacket(self, subpacket):
+ return subpacket['issuer'][-8:].upper()
+
def _str_user_id_packet(self):
return self['user']
offset += 2
self['signature'] = data[offset:]
+ def _parse_issuer_signature_subpacket(self, data, subpacket):
+ subpacket['issuer'] = ''.join('{:02x}'.format(byte) for byte in data)
+
def _parse_user_id_packet(self, data):
self['user'] = str(data, 'utf-8')