-
Notifications
You must be signed in to change notification settings - Fork 136
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
Public inputs refactor #676
Merged
Merged
Changes from 18 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b14e8f0
rename MemorySegment to SegmentName
juan518munoz efb2435
add SegmentName enum options
juan518munoz 6edc4c3
Segment struct declaration
juan518munoz ed2be99
initial integratation of struct Segment
juan518munoz 0579bd9
rmv comment
juan518munoz 68497f3
Merge branch 'main' into PublicInputsRefactor
juan518munoz 2c75f5a
update cairo-vm
juan518munoz f5a601b
change cairo-vm branch
juan518munoz 2a7d3eb
add ecdsa & pedersen
juan518munoz 4284f8a
test pub inputs from vm
juan518munoz 97e1e44
Merge branch 'main' into PublicInputsRefactor
juan518munoz f73fc39
public inputs most fields derived from vm
juan518munoz 8ba4bcb
clippy & fmt
juan518munoz 845ebd1
update cairo-vm dep to latest rev
juan518munoz 2ae0109
get memory segment from vm
juan518munoz b556554
rename data_len to codelen
juan518munoz e13cc69
Merge branch 'main' into PublicInputsRefactor
juan518munoz 14d3c14
Merge branch 'main' into PublicInputsRefactor
juan518munoz 32d75d5
Merge branch 'main' into PublicInputsRefactor
juan518munoz 56024d0
Merge branch 'main' into PublicInputsRefactor
entropidelic be520f9
Extract public memory directly from public inputs of Cairo VM
entropidelic 666f007
Refactor get_memory_holes function
entropidelic 9d720cd
Merge branch 'main' into PublicInputsRefactor
entropidelic f495565
Remove unnecessary function and legacy test
entropidelic b317f1b
Remove some commented code and fix some tests
entropidelic f1b9293
Solve clippy issues
entropidelic 95168ba
Remove legacy test
entropidelic f6817ee
Fix some comments on tests
entropidelic 8415e05
Merge branch 'main' into PublicInputsRefactor
entropidelic 7bdce89
Refactor pub addresses in add_pub_memory_in_public_input_section func…
entropidelic 40e5211
Merge branch 'main' into PublicInputsRefactor
entropidelic 17c5b1b
Merge remote-tracking branch 'origin/PublicInputsRefactor' into Publi…
entropidelic 65b8e09
Refactor segment_size method
entropidelic a0b7612
iterate over addr value pairs in add_pub_memory_in_public_input_secti…
entropidelic 58a5d4e
Merge branch 'main' into PublicInputsRefactor
entropidelic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have the public inputs directly from the cairo vm, there is no need to ask for the codelen, and the public memory should be obtained from the public inputs, this was just a hacky solution until we had access to them.
The approach should be similar to the one you did with the memory segments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a result of this, the
PublicInputs
fieldcodelen
could be removed, since it can be deduced with the length of theProgram
memory segmentThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only function that makes use of the
codelen
field isget_memory_holes
which itself is only called insidebuild_main_trace
. How should we handle this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having trouble doing an iteration over the vm public memory, doing something like this:
Breaks some of our tests
Maybe I'm missing something?