-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Get the light client to compile for wasm #7915
Comments
|
I would break up the tasks for this like so:
Ring will definitely pose an issue because signing libraries are depended on by |
Should the network code be hard-coded to libp2p/devp2p (eg. pass an instance of I'd go for the first option, because Parity may depend on some very specific networking behaviours. If we go for the second option, not only would the API be very complex, but every single corner case would need to be documented. |
Keeping it generic seems the best way to make it testable. Right now the light client network code is fairly network-independent and exposes a few hooks that can be called by devp2p or libp2p or an in-memory test network. In general, how are you supposed to unit test libp2p-based code? |
You can fairly easily create an implementation of the |
This is really difficult, so instead I suggest adding an optional EDIT: Although I'm not sure ; removing |
Notes for myself for crypto libraries alternatives: |
Closing issue due to its stale state. |
cc @rphmeier
In order to be able to run the light client inside of a browser extension.
Problematic libraries include
mio
(doesn't support emscripten),ring
(uses raw assembly),rocksdb
andopenssl
(both will be hard to compile).The text was updated successfully, but these errors were encountered: