-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fixes to run the bootloader integration tests #37
Fixes to run the bootloader integration tests #37
Commits on Feb 22, 2024
-
Some issues occurred when compiling the project with the Madara prover API.
Configuration menu - View commit details
-
Copy full SHA for 7698c76 - Browse repository at this point
Copy the full SHA 7698c76View commit details -
Fix: use correct type when setting
simple_bootloader_input
Store the `simple_bootloader_input` field of the bootloader input instead of storing the whole bootloader_input.
Configuration menu - View commit details
-
Copy full SHA for 7c3c338 - Browse repository at this point
Copy the full SHA 7c3c338View commit details -
Fix: use correct hint code for %{ 0 %}
The hint is compiled to a different code.
Configuration menu - View commit details
-
Copy full SHA for 7b5b3df - Browse repository at this point
Copy the full SHA 7b5b3dfView commit details -
Fix: use correct hint code for validate_hash
A backslash was encoded the wrong way in the hint code.
Configuration menu - View commit details
-
Copy full SHA for 8d6ccf6 - Browse repository at this point
Copy the full SHA 8d6ccf6View commit details -
Inner select builtins hint: select builtin
Implement the hint that determines whether a specific builtin is selected for the given program.
Configuration menu - View commit details
-
Copy full SHA for baac9ef - Browse repository at this point
Copy the full SHA baac9efView commit details -
Fix: consider output_ptr as a relocatable instead of a value
`pre_execution_builtin_ptrs` is an array of pointers, not of values as we previously understood.
Configuration menu - View commit details
-
Copy full SHA for 9cdcdc5 - Browse repository at this point
Copy the full SHA 9cdcdc5View commit details -
Fix: do not force integer type when copying builtins
Problem: `write_return_builtins` copies data from the pre-execution builtins for each builtin not used by the program. We specify that the value of the pre-execution builtins is integer, which is not the case. Solution: just copy the memory without enforcing a specific type.
Configuration menu - View commit details
-
Copy full SHA for 0e7c781 - Browse repository at this point
Copy the full SHA 0e7c781View commit details -
Fix: output_runner_data is an optional
Implemented `get_task_fact_topologies` for Cairo PIE tasks at the same time.
Configuration menu - View commit details
-
Copy full SHA for 4a4d1fb - Browse repository at this point
Copy the full SHA 4a4d1fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1055e4 - Browse repository at this point
Copy the full SHA b1055e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 615866b - Browse repository at this point
Copy the full SHA 615866bView commit details -
Fix: use correct hint code for nondet %{ ids.num // 2 %}
The hint is compiled to a different code.
Configuration menu - View commit details
-
Copy full SHA for 0c5c9de - Browse repository at this point
Copy the full SHA 0c5c9deView commit details -
Fix: use correct hint code for isinstance(packed_output, PlainPackedO…
…utput) The hint is compiled to a different code.
Configuration menu - View commit details
-
Copy full SHA for 67d3b46 - Browse repository at this point
Copy the full SHA 67d3b46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fd7790 - Browse repository at this point
Copy the full SHA 9fd7790View commit details -
Configuration menu - View commit details
-
Copy full SHA for 640bee9 - Browse repository at this point
Copy the full SHA 640bee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97ebd55 - Browse repository at this point
Copy the full SHA 97ebd55View commit details -
Fix: use program identifiers to determine ret_pc for Cairo PIEs
Remove the hardcoded value for `ret_pc` and compute it using the program identifiers instead. We now expect the bootloader program to be accessible as the `bootloader_program` variable in the root execution scope.
Configuration menu - View commit details
-
Copy full SHA for 392c4b6 - Browse repository at this point
Copy the full SHA 392c4b6View commit details -
Fix: deserialize PIE additional data as struct instead of hashmap
Problem: Deserializing the PIE additional data as a hashmap of `BuiltinAdditionalData` enums because of an issue with deserializing untagged unions in `serde` (see serde-rs/json#1103). Solution: add a new `AdditionalData` struct with explicit fields for each builtin, circumventing the untagged union issue. This solution has the advantage of always associating the correct data type for each builtin (it's not possible anymore to associate a builtin with a different data type), but requires modifications if a new builtin is added.
Configuration menu - View commit details
-
Copy full SHA for 25d35b1 - Browse repository at this point
Copy the full SHA 25d35b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c95396d - Browse repository at this point
Copy the full SHA c95396dView commit details -
Fix: deserialize ECDSA builtin data from Python VM format
Problem: the ECDSA/signature builtin additional data is stored internally as a hashmap, but the Python VM stores it as a vector of tuples. Solution: Add a `SignatureBuiltinAdditionalData` struct and implement a custom deserializer for it that can take either a hashmap or a vector.
Configuration menu - View commit details
-
Copy full SHA for b7685a1 - Browse repository at this point
Copy the full SHA b7685a1View commit details -
Fix: support loading PIE memory files > 32KB
Fixed a bug in the memory file loader implementation.
Configuration menu - View commit details
-
Copy full SHA for 76622d8 - Browse repository at this point
Copy the full SHA 76622d8View commit details -
Feature: support output pages in public input memory
Problem: output page IDs do not appear when exporting the builtin memory, but default to page 0 instead. Solution: add a `get_public_memory` to the output builtin to export page IDs correctly.
Configuration menu - View commit details
-
Copy full SHA for d3a33c2 - Browse repository at this point
Copy the full SHA d3a33c2View commit details -
Feature: deserialize Cairo PIE from bytes
Added a `from_bytes` class method to build a `CairoPie` method in addition to the existing `from_file` method.
Configuration menu - View commit details
-
Copy full SHA for e0a4653 - Browse repository at this point
Copy the full SHA e0a4653View commit details