def hex_str_to_bytes(h):
    """ Converts a hex-encoded string to bytes.

    Args:
        h (str): hex-encoded string to convert.

    Returns:
        b (bytes): bytes corresponding to h.
    """
    return bytes.fromhex(h)