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

Implement light client sync algorithm #64

Closed
StoyanDrumev opened this issue Apr 7, 2023 · 2 comments
Closed

Implement light client sync algorithm #64

StoyanDrumev opened this issue Apr 7, 2023 · 2 comments
Assignees

Comments

@StoyanDrumev
Copy link
Collaborator

[[Implement grandpa justifications verification algorithm]](https://spec.polkadot.network/#warp-sync) using the info coming from /sync/warp
Implement a sync query process based on this [algorithm](https://spec.polkadot.network/#algo-light-clients-query-state) because it’s used by the warp sync algorithm
Persist latest finalized block information to DB

@vikinatora
Copy link
Collaborator

This big task can be split into several smaller ones:

  • Find snapshot with light client state, add it, read it
  • Implement authority set change verification algorithm
  • Implement grandpa justification verification algorithm
  • Implement light client response verification algorithm and merkle proof against the Commit Root Hash from the warp sync response. See here for more info.
  • Implement the light client sync algorithm based on this and this diagrams.

@Kirqkas These should be separate issues I think.

@Kirqkas
Copy link
Collaborator

Kirqkas commented May 3, 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

No branches or pull requests

5 participants