@staticmethod
def from_hex(h):
    ' Generates PrivateKey from a hex-encoded string.\n\n        Args:\n            h (str): A hex-encoded string containing a 256-bit\n                 (32-byte) integer.\n\n        Returns:\n            PrivateKey: A PrivateKey object.\n        '
    return PrivateKey.from_bytes(bytes.fromhex(h))
Generates PrivateKey from a hex-encoded string.

Args:
    h (str): A hex-encoded string containing a 256-bit
         (32-byte) integer.

Returns:
    PrivateKey: A PrivateKey object.
@staticmethod
def from_hex(h):
    ' Generates PrivateKey from a hex-encoded string.\n\n        Args:\n            h (str): A hex-encoded string containing a 256-bit\n                 (32-byte) integer.\n\n        Returns:\n            PrivateKey: A PrivateKey object.\n        '
    return PrivateKey.from_bytes(bytes.fromhex(h))