Skip to content

Compiling c-lightning via WebAssembly to run in browser #1370

Closed
@caffeinum

Description

@caffeinum

That is not an issue, that is mostly a proposal/ask for help. I am not sure what would be the best place to ask such question.

I am looking for a way to run a LN node inside the browser. One way would be to implement BOLT protocol from scratch in JS, but I am thinking of an easy way.

Has anyone succeed in compiling this project under WebAssembly? http://webassembly.org/getting-started/developers-guide/. WebAssembly is a C/C++ compiler into browser-compatible byte-code. It can use JS-API, but can also work with low-level C functions.

What are specific things c-lighting does that would stop from running it inside browser? e.g. my main concern are sockets, because for WebAssembly you should use special wrappers given by Emscripten lib.

So, my question is what should I look for when trying to run that, and also I want to hear your general feedback on the idea.

P.S. If here's not the place for this, can you please point me to where I can get such feedback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type::EnhancementAimed at improving the existing functionality or a new feature that provides additional value

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions