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

Handle cache for certificate verification in WASM client #1484

Open
2 of 11 tasks
jpraynaud opened this issue Feb 1, 2024 · 0 comments
Open
2 of 11 tasks

Handle cache for certificate verification in WASM client #1484

jpraynaud opened this issue Feb 1, 2024 · 0 comments
Assignees
Labels
devX 🌞 Developer experience

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Feb 1, 2024

Why

We want the client library to provide faster certificate verification in the explorer.

What

Implement certificate cache mechanism in the client library and use it in the client WASM.

How

  • (De)activate the cache with a setting on the client WASM
  • Use the certificate cache as unstable feature
  • Define a CertificateCacher trait in mithril-client (with an expiration delay)
  • Implement a LocalStorageCertificateCacher in the mithril-client-wasm
  • Use the CertificateCacher in the verify_chain implementation of the MithrilCertificateVerifier in mithril-client
    • If a certificate is verified and cached, it is not downloaded and verified again (iif it is not the genesis certificate)
    • Verify the genesis certificate even if the cache is activated
  • Adapt feedback receiver to give information about the certificate verification (cached or not)
  • Verify security assumptions for browser local storage
  • Adapt explorer with certificate caching
  • Adapt examples with certificate caching
@jpraynaud jpraynaud added devX 🌞 Developer experience to-groom 🤔 Needs grooming labels Feb 1, 2024
@jpraynaud jpraynaud added prototype 🛠️ Prototype/PoC of a feature and removed to-groom 🤔 Needs grooming labels Feb 12, 2024
@jpraynaud jpraynaud removed the prototype 🛠️ Prototype/PoC of a feature label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devX 🌞 Developer experience
Projects
None yet
Development

No branches or pull requests

2 participants