From RFC 4880 [1]:
A User ID packet consists of UTF-8 text that is intended to
represent the name and email address of the key holder. By
convention, it includes an RFC 2822 [RFC2822] mail name-addr, but
there are no restrictions on its content. The packet length in the
header specifies the length of the User ID.
[1]: http://tools.ietf.org/search/rfc4880#section-5.11
offset += 2
self['signature'] = data[offset:]
+ def _parse_user_id_packet(self, data):
+ self['user'] = str(data, 'utf-8')
+
def to_bytes(self):
pass