def bytes_to_int(b: bytes) -> int:
    """
    Convert bytes to a big-endian unsigned int.
    :param b: The bytes to be converted.
    :return: The int.
    """
    return int.from_bytes(bytes=b, byteorder='big', signed=False)