Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Tor integration #120

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

Tor integration #120

wants to merge 29 commits into from

Conversation

romainbsl
Copy link
Contributor

This PR add the Tor integration for Phoenix iOS.

  • Manage the Tor connection lifecycle when Tor is enable in the configuration, as any other connectivity there is a connection loop that retry to connect on an increasing delay (min 500ms - max 8s).
  • Add Tor connection state on the HomeView
  • Add Tor version / network state info TorConfigurationView
  • If Tor is enabled, Electrum and Peer wait that both Internet and Tor are online before getting the proper socket builder and connecting
  • Initialize ElectrumClient and Peer with a null socket builder, prevent them to connect through the wrong pipeline
  • Force Electrum to connect through SSL (didn't see anything specifying enabling / disabling TLS on Android)
  • Finally, this doesn't affect HTTP API consumer (bitcoin rates / wallet params)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants