-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Currently lightning node connect is written in go and compiled to web assembly for use in https://github.com/lightninglabs/lnc-web within a browser using javascript. Initially, I thought that maybe web assembly was the most universal way to use lightning node connect, so I tried to use web assembly from python with wasmer. In #70 I mention that I can't get it to work with wasmer.
Later, I learned that Zeus uses https://github.com/lightninglabs/lnc-rn which has the go code compiled to native binaries for mobile (lightninglabs/lnc-rn#23) and does not use web assembly.
Now, I'm wondering, would it be simpler to make a python module that uses natively compiled go code instead of using web assembly code within python? Here are some relevant resources
- https://github.com/go-python/gopy
- https://words.filippo.io/building-python-modules-with-go-1-5/
- https://github.com/ardanlabs/python-go/tree/master/grpc
With the new LND Accounts feature (lightninglabs/lightning-terminal#363 , https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/accounts) that leverages Lightning Node Connect, it's critical that there are more ways to use Lightning Node Connect in a variety of code bases. The LND Accounts feature can safely and easily allow a wide variety of applications and machine to machine devices to use the lightning network.