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

Allow clients to check and download immutable DB incrementally #1208

Closed
ghost opened this issue Sep 6, 2023 · 1 comment
Closed

Allow clients to check and download immutable DB incrementally #1208

ghost opened this issue Sep 6, 2023 · 1 comment
Labels
idea 💡 Something to discuss and refine to-groom 🤔 Needs grooming

Comments

@ghost
Copy link

ghost commented Sep 6, 2023

Why

We know we'll want to provide some way to have mithril snapshots be more incremental, in order to allow clients to download (and verify) only the parts they are missing and are interested in.

To make what we currently have more useful, having the possibility to download only the immutable files you are missing (and the relevant ledger state), would be great. It would allow eg. a desktop wallet user to sync up their node in minutes, or even seconds, using mithril.

What

  • Archive and serve each immutable file independently (or as a range)
  • Sign and certify a Merkle-Tree root of all immutable files' hashes
  • Allow mithril-clients to request download of only "missing" immutable files:
    • The client would request whatever snapshot they are interested in, check the latest immutable file number, compare with what they have locally, and only download the missing parts.
    • This might not be totally trivial as this would imply the client wipes out the volatile and ledger DBs
  • When a fragment is retrieved, associate a MT inclusion proof so that the client only have to verify the root certificate once
@jpraynaud jpraynaud added idea 💡 Something to discuss and refine epic ⚔️ Epic that gathers related tasks dev 💪 to-groom 🤔 Needs grooming labels Sep 6, 2023
@jpraynaud jpraynaud removed the epic ⚔️ Epic that gathers related tasks label Jul 11, 2024
@jpraynaud
Copy link
Member

Superseded by #2047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea 💡 Something to discuss and refine to-groom 🤔 Needs grooming
Projects
None yet
Development

No branches or pull requests

1 participant