nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
15 stars 17 forks source link

Support running light client on iOS and Android #175

Open Keith-CY opened 10 months ago

Keith-CY commented 10 months ago

Here is a question about whether there is a plan for supporting the light client on iOS and Android.

By doing so, the light client can be distributed to more devices along with a mobile app/wallet to level up the network's decentralization.

I'm personally interested in this topic because our team currently manages a desktop wallet but it's actually a bit cumbersome for daily usage, particularly when integrating with a DApp.

Integrating the light client into a mobile app holds the potential to expand our user base, offering improved usability and opening avenues for product development and market profitability.

phroi commented 10 months ago

On the same line of thoughts, I was wondering, how difficult would it be to compile Light Client to WASM and run it directly in a browser environment? 🤔

For example see: wasm-service

quake commented 10 months ago

While it is indeed possible, the process involves substantial cross-compilation adjustments and extensive testing, which unfortunately it's not high priority at the moment due to time constraints. If you have any problems trying to cross-compiling on your own, you can create issue here, and we'll try to help out.

quake commented 10 months ago

On the same line of thoughts, I was wondering, how difficult would it be to compile Light Client to WASM and run it directly in a browser environment? 🤔

For example see: wasm-service

Running in a browser via wasm is a bit more complicated, and in addition to light client's local storage limitations, the ckb full node needs to support something like a websocket p2p also.