def hash_cof_name(cof_name: str) -> int:
    """Computes the block hash for the given COF name.

    :param cof_name: COF name as an ASCII string.
    :return: Hash value as integer between 0 and 255, inclusive.
    """
    # Based on:
    #   https://d2mods.info/forum/viewtopic.php?p=24163#p24163
    #   https://d2mods.info/forum/viewtopic.php?p=24295#p24295
    return sum(map(ord, cof_name.upper())) % 256