Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing hints used by bootloaders #171

Open
MauroToscano opened this issue Sep 29, 2023 · 2 comments
Open

Missing hints used by bootloaders #171

MauroToscano opened this issue Sep 29, 2023 · 2 comments

Comments

@MauroToscano
Copy link

MauroToscano commented Sep 29, 2023

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

For example:

%{
from starkware.cairo.bootloaders.simple_bootloader.objects import SimpleBootloaderInput
simple_bootloader_input = SimpleBootloaderInput.Schema().load(program_input)
%}

@Cevedale
Copy link

Cevedale commented Jan 1, 2024

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
Copy link

Okm165 commented Jan 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants