lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.67k stars 2.07k forks source link

How to connect lnd to zap or get the lndconnect scheme? #6488

Closed droid192 closed 2 years ago

droid192 commented 2 years ago

remote node runs debian lnd-linux-amd64-v0.14.3-beta.tar.gz

the scheme zap android asks for lndconnect://<host>:<port>?[cert=<base64url DER certifcate>&]macaroon=<base64url macaroon> can be qr generated, but what is the host:port? can the node_key.onion be used, how?

the tls.cert and admin.maroon are in the lnd datadir.

ziggie1984 commented 2 years ago

yes you can easily connect also your Node which is running behind tor, for zap-android it uses port 10009 (grpc) so it would look something like this:

lndconnect://chjlq27t7igzmv66botvnec7lsic3syg7rkplgxq263wc3vbm4qj5ryd.onion:10009.....

for more infos check this out:

https://github.com/rootzoll/raspiblitz/blob/v1.7/home.admin/config.scripts/bonus.lndconnect.sh#L76

or

https://github.com/LN-Zap/lndconnect/blob/master/lnd_connect_uri.md

ziggie1984 commented 2 years ago

not sure which node setup your are running but you also need to create a hidden tor grpc service, so you can connect to it.

Because the above onion address, is the address of my hidden service which is listening on port 10009.