starkware-libs / cairo-lang

Apache License 2.0
1.33k stars 260 forks source link

Missing hints used by bootloaders #171

Open MauroToscano opened 9 months ago

MauroToscano commented 9 months ago

It seems that some of the hints that the bootloaders use are missing

For example: https://github.com/starkware-libs/cairo-lang/blob/27a157d761ae49b242026bcbe5fca6e60c1e98bd/src/starkware/cairo/bootloaders/simple_bootloader/simple_bootloader.cairo#L19-L22

Cevedale commented 6 months ago

the error message indicates that some of the required hints used by bootloaders are missing. the hints in question are:

%builtins output pedersen range_check ecdsa bitwise ec_op keccak poseidon

you need to have the necessary declarations for these builtins in your code. relevant modules or files importing or defining these builtins must be included or properly referenced in your script.

from starkware.cairo.common.cairo_builtins import ( output, pedersen, range_check, ecdsa, bitwise, ec_op, keccak, poseidon )

Okm165 commented 6 months ago

I found out that there at least one more missing file Namely this line needs utils.py in simple_bootloader dir, for configure_fact_topologies & write_to_fact_topologies_file func Also needed for core functionalities like: load_program load_cairo_pie, prepare_output_runner, write_return_builtins get_task_fact_topology

tl;dr cairo-lang/src/starkware/cairo/bootloaders/simple_bootloader/utils.py is missing also