-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat(continuations): write storage values directly in linked lists #433
feat(continuations): write storage values directly in linked lists #433
Conversation
…45336afd not found in linked list
…ert_storage_change
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.
Looks good to me!
@@ -165,6 +165,10 @@ global perform_final_checks: | |||
PROVER_INPUT(trie_ptr::state) | |||
|
|||
%mstore_global_metadata(@GLOBAL_METADATA_STATE_TRIE_ROOT) | |||
|
|||
PROVER_INPUT(trie_ptr::trie_data_size) | |||
%mstore_global_metadata(@GLOBAL_METADATA_TRIE_DATA_SIZE) |
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.
Maybe this needs a comment saying that is not unsound to simply guess the size. I think it's because the values in the storage linked lists are already non det. advice, so it doesn't matter from where you are reading them.
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/initial_tries.asm
Outdated
Show resolved
Hide resolved
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/initial_tries.asm
Outdated
Show resolved
Hide resolved
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/initial_tries.asm
Outdated
Show resolved
Hide resolved
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/linked_list.asm
Outdated
Show resolved
Hide resolved
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/linked_list.asm
Outdated
Show resolved
Hide resolved
evm_arithmetization/src/cpu/kernel/asm/mpt/linked_list/linked_list.asm
Outdated
Show resolved
Hide resolved
) * Remove unnecessary linked_lists methods and payload_ptr * Store storage value in linked list * Fix Clippy and cleanup * Apply comments * Only write to TrieData if value nonzero * Fix comments and name changed in merge * Apply comments --------- Co-authored-by: 4l0n50 <[email protected]> Co-authored-by: Alonso Gonzalez <[email protected]> Co-authored-by: Robin Salen <[email protected]>
Closes #398 .
This PR makes linked lists store the slot values directly, instead of a pointer to the
TrieDataSegment
.