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: Run client in browser WASM PoC #1254

Closed
3 of 4 tasks
Tracked by #1313
jpraynaud opened this issue Sep 25, 2023 · 2 comments
Closed
3 of 4 tasks
Tracked by #1313

Light Wallet: Run client in browser WASM PoC #1254

jpraynaud opened this issue Sep 25, 2023 · 2 comments
Assignees
Labels
prototype 🛠️ Prototype/PoC of a feature

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Sep 25, 2023

Why

We want to make Lace (which runs in the browser) "Mithril aware", which means that it needs to be able to verify Mithril certificates.
This feature will provide support for light wallet integration with Mithril: retrieve the Utxos of a limited set of addresses with a cryptographic proof.

What

We need to explore the usage of the Mithril client in the browser, which is the first mandatory step toward integration with Lace.
Our first objective is to verify a Mithril certificate in the browser. We want to know if this is possible, and we also want to get a better understanding of what it requires on our end (new developments, how to deliver software, ...)

How

  • Compile a "light" binary in WASM that embeds the STM library and verifies a multi-signature (can be hard-coded)
  • Compile a "light" binary in WASM that embeds the Ed25519-Dalek library and verifies a genesis signature (can be hard-coded)
  • Compile a "light" binary in WASM that downloads and verifies the whole certificate chain
  • Compile the client in WASM
@jpraynaud jpraynaud added the prototype 🛠️ Prototype/PoC of a feature label Sep 25, 2023
@ghubertpalo ghubertpalo mentioned this issue Sep 27, 2023
11 tasks
@jpraynaud jpraynaud self-assigned this Oct 2, 2023
@jpraynaud
Copy link
Member Author

jpraynaud commented Oct 3, 2023

@jpraynaud
Copy link
Member Author

Hi @curiecrypt and @iquerejeta, we have modified the STM library in order to make it compile in WASM as explained in this commit: 858f016

The aggregate_verify BLST function was not found by the compiler, and we received this error:

Build error with BLST:
error[E0599]: no method named  found for struct  in the current scope

Do you have any idea of what could be the problem?

@jpraynaud jpraynaud changed the title Spike: Run client in browser WASM PoC Run client in browser WASM PoC Oct 4, 2023
@jpraynaud jpraynaud changed the title Run client in browser WASM PoC Light Wallet: Run client in browser WASM PoC Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prototype 🛠️ Prototype/PoC of a feature
Projects
None yet
Development

No branches or pull requests

2 participants