import binascii


def get_hex_from_private_key(key):
    """
    Get hexadecimal representation of private key.

    Args:
        key (ecdsa.SigningKey): The private key.

    Returns:
        str: The hexadecimal string.

    """
    return binascii.hexlify(key.to_string()).decode()