lightning-browser-extension
lightning-browser-extension copied to clipboard
Add support for lndconnect URLs
lnd connect describes a URL that contains all need information to connect to an lnd node.
it uses the lndconnect: scheme.
We should add support for those links and automatically prefill the connector setting to make it easy for users to add an LND connection.
https://github.com/LN-Zap/lndconnect/blob/master/lnd_connect_uri.md
Wouldn't mind doing some pair programming on this if anyone is interested.
I basically got this working, but the problem is that most LND nodes (like Umbrel) use TLS with a self-signed certificate. There is no way in the fetch API to ignore the certificate errors from this AFAIK. I think it would ork over Tor. I'll open a draft PR soon, maybe someone has an idea.
ah true. Sadly we have to rely on the browser for the certificates. This means similar to Tor requests can be made through the native companion app, OR: an exception has to be added or the certificate has to be added to the browser. Mostly it should be actually enough to open the URL once manually and add an exception.
for loading lndconnect strings we should probably ignore the certificate for now.
I believe this is implemented already, so closing