LN-Zap / zap-android

Zap Wallet - Native android lightning wallet for node operators focused on user experience and ease of use ⚡️
MIT License
165 stars 49 forks source link

Native Tor support #344

Closed Relaxo143 closed 3 years ago

Relaxo143 commented 3 years ago

The only reliable way to connect to a node remotely right now is over VPN. Orbot is buggy and drains the battery. Implementing native Tor support would be greatly appreciated.

michaelWuensch commented 3 years ago

Hi, I am working on it. This will be the main task for the next release. Actually I just got it working a few minutes ago, I was able to connect to my tor node without Orbot. Still lots to do though, like testing different devices, stability, settings, UI, etc.

Relaxo143 commented 3 years ago

Hi, I am working on it. This will be the main task for the next release. Actually I just got it working a few minutes ago, I was able to connect to my tor node without Orbot. Still lots to do though, like testing different devices, stability, settings, UI, etc.

Great to hear! I can help with testing if needed. Just need the .apk

michaelWuensch commented 3 years ago

@Relaxo143 Thanks, if you want to test it and give feedback, you can build it yourself using the "nativeTor" Branch from my repo: https://github.com/michaelWuensch/zap-android/tree/nativeTor

Considering the UX I am done I think. I still have to test reproducability though and add authentication with random passwords for the tor proxy.

Relaxo143 commented 3 years ago

@michaelWuensch Built and tested on Android 11. The integration seems to be working, connected to my node successfully and also sent a test payment. The TX history needs to be manually refreshed however, probably because of the longer time needed to connect. On a side note, it's impossible to connect by scanning a QR. They are simply too big. Not sure if there's something that can be done about it.

michaelWuensch commented 3 years ago

@Relaxo143 Thanks for testing and glad to hear it is working! In regards to the history refreshing issue. When do you have to refresh it exactly? After you did the transaction or right after opening the app? A more detailed description would help me to track it down.

QR Code scanning problem: This depends on a lot of things.

Relaxo143 commented 3 years ago

@michaelWuensch Right after opening the app. After transactions, it updates automatically, but only if I've refreshed it manually after startup. I've seen this issue long before this Tor upgrade, when on a slow connection, so it's not causing it directly, but since Tor can slow down the connection time often enough I thought I'd mention it.

I am using mynode and I think they do include certs. Could another solution be to separate the info in a few smaller QR codes? I imagine it would be a hassle for both the wallet and node providers though.

michaelWuensch commented 3 years ago

I have just released v0.5.0-beta which includes native Tor support. This should solve the Tor connection issues. If there are still problems after the update, feel free to open a new Issue.