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

Query plan proofs #196

Open
wants to merge 154 commits into
base: master
Choose a base branch
from
Open

Query plan proofs #196

wants to merge 154 commits into from

Conversation

cheme
Copy link
Contributor

@cheme cheme commented Jun 30, 2023

This branch adds method to create a proof form a set of key value request (following w3f/PPPs#10).

Proof can be split depending on size limits.
To create a splitted proof there is two mode:

  • statefull where the same state need to be use for every query.
  • stateless every part of the proof can be produce from parameters without state (this is more complex but is what should be use in substrate rpc).

Verification is only statefull (for a client there is no sense in obtaining incomplete proof without having all the other part of proofs).

In addition to the psp proof I also implemented the same for compact proof.

The substrate branch using it is https://github.com/cheme/polkadot-sdk/tree/trie_hash (note that no limit is set by default, but this should be configurable for at node start).

@cheme cheme marked this pull request as ready for review August 1, 2023 16:08
@cheme
Copy link
Contributor Author

cheme commented Aug 1, 2023

PR should be ready for review, I did remove the content kind of proof. If it is still a bit too big the compact version could also be removed (yet I think it is very nice to have).

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