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

[wip]: trie: stacktrie initialization from proof #28231

Closed
wants to merge 2 commits into from

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Oct 1, 2023

This PR is (the start of) an alternative to #28225, and the successor to the abandoned #24560 .

This PR implements initializing a stacktrie using a proof. The stacktrie can then be filled with keys.
If this approach is used to initialize the genTries, we will avoid the corruption on left-hand side in the chunks.


This PR still does not implement right-hand hash-filling, which is a required step if we want to use stacktrie to replace regular trie in verifying trie subslices.

An alternative to right-hand hash-filling, is a one-time conversion from stacktrie -> trie. After converting from stacktrie to trie, it would be very simple to feed in the right hand side of the proof, and complete the verification.

In order to simplify that part, I think it would make sense to first move ahead with #28233 -- that would make the stacktrie more "alike" the regular trie, with distinction between "the trie itself" and the internal nodes.

@holiman holiman closed this Oct 10, 2023
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

Successfully merging this pull request may close these issues.

1 participant