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
antiyro opened this issue Jul 16, 2024 · 2 comments
Open
1 task done

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

antiyro opened this issue Jul 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request sequencer The label for sequencing related issues

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 enhancement New feature or request sequencer The label for sequencing related issues labels 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sequencer The label for sequencing related issues
Projects
Status: In progress
Development

No branches or pull requests

2 participants