ACINQ / eclair-mobile

An Android wallet for the Lightning Network
Apache License 2.0
258 stars 44 forks source link

[FEATURE] open channel with .onion URI #146

Open m8tion opened 5 years ago

m8tion commented 5 years ago

I have setup a bitcoin + lnd node at home on a raspberry pi 2B+ following the excellent Stadicus' guide: https://github.com/Stadicus/guides/blob/master/raspibolt/README.md. These nodes are fully torified (they accept only tor connections) and reachable on both networks. I can open and close channels, send and receive payments, my bitcoin node is reachable from bitnodes.earn.com and my LN node is listed on 1ML.com. I run last versions of both software (bitcoind 0.17.1, lnd 0.5.0.2). Well, I guess my nodes are fully operational.

The URI of my LN node finishes with a ".onion" address. When I try to open a channel in Eclair Mobile (0.3.18) scaning the URI on 1ML I get a "failed to open channel: connection failed to " message. I tried to open channels with other ".onion" URI nodes listed on 1ML and that doesn't work neither. I tried also with torified nodes using "xxx.xxx.xxx.xxx" URI addresses instead of ".onion" and there is no problem opening channels with them. I also started Orbot on my phone, it doesn't work neither.

Is there already a way to open a channel with a ".onion" node or is it something you are working on ?

Wouldn't it possible to open a channel with the public key instead of the URI ? Both options are available in lnd:

lncli openchannel --node_key <pub_key>     # open channel with public key
lncli openchannel --connect <URI>     # open channel with complete URI
pm47 commented 5 years ago

Tor support has just been merged on eclair-core a few days ago: https://github.com/ACINQ/eclair/commit/808bf14d20e71d9230111b64e1e2f4e7c784bc55.

We will be see how easy it is to make it work on android but I don't see why it would be a problem.

m8tion commented 5 years ago

Great news thanks. Can't wait for the update.

ArbenKarb commented 5 years ago

Hi, I think I have a similar (or even the same?) question. Recently started running my node behind tor and ever since been unable to update the address of the peer in the channel and connect to it.

Will this feature allow me to update and reconnect the channel?

elvece commented 4 years ago

Any updates on integrating Tor node support to eclair-mobile? Still seem to be getting a connection failed error when connecting to my Tor LND node. Is there a feature branch available to track?