-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for storage proof queries #99
Comments
What would be the use case for these read proofs? |
Every parachain block needs to include the |
I don't really have a definite opinion on this at the moment, but for what it's worth you can almost construct a read proof using two consecutive It might be complicated to do for someone not familiar with the format of read proofs, but someone who's familiar with them should be able to do it. I say "almost" because |
To give an example, if you want to generate a proof for the key
Then based on all this information you can build the proof. There's no need for the storage values of Beyond the possibility to ask for the closest descendant Merkle value of trie nodes with an uneven number of nibbles (which isn't possible yet), we would also need a way to know the state version of each storage value (v0 or v1), which is also not possible yet but can be easily added with an extra field. The pros of this approach are:
The pros of adding a separate function that directly returns a proof are:
|
In the old API there was
state_getReadProof
to which one would supply a list of keys and receive a storage proof including those keys. Support for something like this in the new API would be something I would like to see. Any thoughts on this?The text was updated successfully, but these errors were encountered: