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

feat(storage): Retrieve storage proof from the bonsai trie #203

Open
1 task done
Tracked by #419
antiyro opened this issue Jul 16, 2024 · 2 comments
Open
1 task done
Tracked by #419

feat(storage): Retrieve storage proof from the bonsai trie #203

antiyro opened this issue Jul 16, 2024 · 2 comments
Assignees
Labels
feature Request for new feature or enhancement research Research and exploration required before implementation sequencer Related to the sequencing logic and implementation

Comments

@antiyro
Copy link
Member

antiyro commented Jul 16, 2024

Is there an existing issue?

  • I have searched the existing issues

Motivation

Currently, we use a specific implementation of the Merkle Patricia Trie called the Bonsai Trie, which allows us to verify the state and access its intermediate state easily and quickly. The issue is that our use of the Bonsai lib in production does not allow us to actually access the historical state because it requires enabling logs taht are too heavy and duplicate values at intermediate states. Our goal is to modify the Bonsai lib in collaboration with Massa Labs to access the historical state efficiently.

Request

Currently, our solution for RPC calls involves using an additional column in our database to store storage key-value and access them historically. However, Moonsang Labs needs storage proofs for its processes in SNOS. Therefore, we must serve these proofs as efficiently and quickly as possible from the bonsai trie directly.

Solution

TBD by Massa/Kasar/Moonsang

Are you willing to help with this request?

Yes!

@antiyro antiyro added this to Deoxys Jul 16, 2024
@antiyro antiyro added feature Request for new feature or enhancement sequencer Related to the sequencing logic and implementation labels Jul 16, 2024
@antiyro antiyro moved this to 🆕 New in Deoxys Jul 16, 2024
@antiyro
Copy link
Member Author

antiyro commented Jul 16, 2024

This issue should also unlock removing the duplicated columns for storage keys. Namely: BlockNToStateDiff and BlockStorageMeta

@antiyro
Copy link
Member Author

antiyro commented Sep 25, 2024

related to #241

@Trantorian1 Trantorian1 added the research Research and exploration required before implementation label Dec 12, 2024
notlesh pushed a commit that referenced this issue Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for new feature or enhancement research Research and exploration required before implementation sequencer Related to the sequencing logic and implementation
Projects
Status: In progress
Development

No branches or pull requests

3 participants