@staticmethod
def from_hex(h):
    ' Generates either a HDPrivateKey or HDPublicKey from the underlying\n        hex-encoded string.\n\n        The serialization must conform to the description in:\n        https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format\n\n        Args:\n            h (str): A hex-encoded string conforming to the above.\n\n        Returns:\n            HDPrivateKey or HDPublicKey:\n                Either an HD private or\n                public key object, depending on what was serialized.\n        '
    return HDKey.from_bytes(bytes.fromhex(h))
Generates either a HDPrivateKey or HDPublicKey from the underlying
hex-encoded string.

The serialization must conform to the description in:
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format

Args:
    h (str): A hex-encoded string conforming to the above.

Returns:
    HDPrivateKey or HDPublicKey:
        Either an HD private or
        public key object, depending on what was serialized.
@staticmethod
def from_hex(h):
    ' Generates either a HDPrivateKey or HDPublicKey from the underlying\n        hex-encoded string.\n\n        The serialization must conform to the description in:\n        https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format\n\n        Args:\n            h (str): A hex-encoded string conforming to the above.\n\n        Returns:\n            HDPrivateKey or HDPublicKey:\n                Either an HD private or\n                public key object, depending on what was serialized.\n        '
    return HDKey.from_bytes(bytes.fromhex(h))