def checksums2dict(checksums: list) -> dict:
    """
    Converts a list of checksums to a dict for easier look up of a block
    :param checksums:  tuple of checksums
    :return: dictionary of {checksum: index}
    """
    result = {}
    for index, checksum in enumerate(checksums):
        if checksum not in result:
            result[checksum] = index

    return result