def to_hex(self):
    ' Generates a hex encoding of the serialized key.\n\n        Returns:\n           str: A hex encoded string representing the key.\n        '
    return codecs.encode(bytes(self), 'hex_codec').decode('ascii')
Generates a hex encoding of the serialized key.

Returns:
   str: A hex encoded string representing the key.
def to_hex(self):
    ' Generates a hex encoding of the serialized key.\n\n        Returns:\n           str: A hex encoded string representing the key.\n        '
    return codecs.encode(bytes(self), 'hex_codec').decode('ascii')