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

Light Wallet: Implement mithril-client WASM library #1336

Closed
14 tasks done
Tracked by #1313
jpraynaud opened this issue Nov 10, 2023 · 0 comments · Fixed by #1389
Closed
14 tasks done
Tracked by #1313

Light Wallet: Implement mithril-client WASM library #1336

jpraynaud opened this issue Nov 10, 2023 · 0 comments · Fixed by #1389
Assignees
Labels
devX 🌞 Developer experience

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Nov 10, 2023

Why

Following the release of the mithril-client library in #1311, we want to extend the availability of the library to WASM binaries.

ℹ We have already created a prototype implementation of the WASM version of the library in the issue #1284

What

Build the mithril-client and mithril-common libraries in WASM.
Run the built mithril-client library in the browser and make it verify a certificate chain.

Definition of Done

The mithril-client library should be partially WASM compatible, published on npm registry and well documented.

How

  • Build the WASM package:
    • Adapt the mithril-client library (and mithril-common) to compile as a WASM package
    • Implement mithril-client-wasm crate which exposes a JavaScript API
  • Deployment of the WASM package:
  • To do also:
    • Add entry for mithril-client-wasm crate in repository README
    • Synchronize secrets in GitHub
    • Synchronize secrets in Vault

Later

  • Make a fake aggregator standalone binary (independent issue)
  • Implement mithril-client-wasm tests (Firefox/Chrome/Node) with the fake aggregator
  • Add WASM client step in Mithril Client multi-platform test
  • Implement the mithril client WASM package in the Mithril explorer (certificate chain verification)
  • Implement a manual workflow to publish to npm

Parent issue

#1313

@jpraynaud jpraynaud added devX 🌞 Developer experience to-groom 🤔 Needs grooming labels Nov 10, 2023
@jpraynaud jpraynaud removed the to-groom 🤔 Needs grooming label Nov 22, 2023
@jpraynaud jpraynaud linked a pull request Dec 12, 2023 that will close this issue
10 tasks
@jpraynaud jpraynaud changed the title Light Wallet: Release mithril-client WASM library Light Wallet: Implement mithril-client WASM library Dec 13, 2023
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

Successfully merging a pull request may close this issue.

2 participants