What's new

How to connect your PIVX wallet to the TOR network

Jeffrey

Administrator
Staff member
torrr main.png


This guide will show you how to enable your PIVX wallet to become a TOR/Onion node.


For Windows operating system:

1.) Firstly install TOR browser for your respective operating system by downloading it from here:

2.) Proceed to install TOR browser, Open it and then close it.

3.) Create any random folder on your desktop which will store your generated .onion domain, for example I created this directory:
C:\Users\Guapic\Documents\tor setup

4.) Once you have created this folder we need to open your TOR browser config file which can be found by navigating to it's installation directory usually on the desktop. by default mine is here:

C:\Users\Guapic\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor

5.) Open the "torrc" file with your preferred text editor and add the following lines below it's config, Make sure to edit in your directory for the folder created in step 3.
HiddenServiceDir C:\Users\Guapic\Documents\tor setup
HiddenServicePort 80 127.0.0.1:8080
HiddenServiceVersion 3
5.1.) It should look something like this: (the reason HiddenServiceVersion 2 is specified is due to lack of support for Version 3 at this stage)
torrrrrr.png

5.2.) Proceed to open your Tor browser.
5.3.) Look inside your directory you created in Step 3, There will be 2 new files. Open the file titled "hostname" with your preferred text editor and copy the .onion domain for your PIVX setup.
hostname.png

5.4.) Now that TOR is setup, it should remain open and running

Step 6 and above PIVX side setup.
6.) Open your PIVX.conf and add the following lines: Make sure to add your onion domain generated inside the hostname file
onion=127.0.0.1:9150
torcontrol=127.0.0.1:9051
externalip=YOURONIONdomain.onion
discover=1
6.1.) Proceed to open your PIVX wallet, All should now connect to the TOR network and as shown in the image above the onion logo will be lit up.


Linux steps coming soon..
 
Last edited:
nice writeup for manually configuring a hidden service for use with the PIVX core wallet.

Some of this can be further simplified by configuring tor to allow the PIVX wallet to authenticate and interact via tor's control port, which will remove the necessity of manually configuring the hidden service, creating a dedicated hidden service directory, and explicitly configuring the onion address in the PIVX config file.

See https://github.com/PIVX-Project/PIVX/blob/master/doc/tor.md#3-automatically-listen-on-tor for more information on configuring tor to allow for this. key points would be to set a control port and establish either cookie or hashed password authentication in the torrc file.
 
nice writeup for manually configuring a hidden service for use with the PIVX core wallet.

Some of this can be further simplified by configuring tor to allow the PIVX wallet to authenticate and interact via tor's control port, which will remove the necessity of manually configuring the hidden service, creating a dedicated hidden service directory, and explicitly configuring the onion address in the PIVX config file.

See https://github.com/PIVX-Project/PIVX/blob/master/doc/tor.md#3-automatically-listen-on-tor for more information on configuring tor to allow for this. key points would be to set a control port and establish either cookie or hashed password authentication in the torrc file.
Thanks for the feedback Fuzz, I am definitely going to try that. Will let you know if I face any issues.
 
key points would be to set a control port and establish either cookie or hashed password authentication in the torrc file.

Adding both the user running Tor and the user running pivxd to the same group so that pivxd has the rights to use the Tor control port:
On Debian or Ubuntu default Tor user is 'debian-tor' and cookie auth is enabled in default torrc.
~$ sudo usermod -aG debian-tor user Replace user with your current username! That's all so that the PIVX¹ wallet automatically listen on Tor.

¹Bitcoin, Dash, Zcoin,...

Attention: This only affects incoming traffic.
For outgoing wallet traffic and DNS leaks see 'pivx.conf' and 'torrc' in my manual: HowTo setup masternode or staker wallet behind Tor
 
Last edited:
Top