It's easier for humans to parse the text representation ;).
'public (sub)key packet version {}'.format(
self['key-version']))
length = 5
- self['creation_time'], self['public-key-algorithm'] = _struct.unpack(
+ self['creation-time'], algorithm = _struct.unpack(
'>IB', data[offset: offset + length])
offset += length
+ self['public-key-algorithm'] = self._public_key_algorithms[algorithm]
self['key'] = data[offset:]
def to_bytes(self):