@staticmethod
def from_hex(h):
    ' Generates a public key object from a hex-encoded string.\n\n        See from_bytes() for requirements of the hex string.\n\n        Args:\n            h (str): A hex-encoded string.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return PublicKey.from_bytes(h)
Generates a public key object from a hex-encoded string.

See from_bytes() for requirements of the hex string.

Args:
    h (str): A hex-encoded string.

Returns:
    PublicKey: A PublicKey object.
@staticmethod
def from_hex(h):
    ' Generates a public key object from a hex-encoded string.\n\n        See from_bytes() for requirements of the hex string.\n\n        Args:\n            h (str): A hex-encoded string.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return PublicKey.from_bytes(h)