Gridcoin Hidden Node on Tor

Disclaimer

Legal status of using Tor network depends on different factual situations and different legal jurisdictions. Consult a local lawyer for more information.

Tor is free and open-source software for enabling anonymous communication by directing Internet traffic through a free, worldwide, volunteer overlay network in order to conceal a user's location and usage from anyone conducting network surveillance or traffic analysis.

Onion routing is a technique for anonymous communication over a computer network. In an onion network, messages are encapsulated in layers of encryption, analogous to layers of an onion. The encrypted data is transmitted through a series of network nodes called onion routers.

Prerequisites

Have a Tor SOCKS proxy running on port 9050. Consult Tor documentation for details.

# ps -aux | grep tor;
# nc -w3 -z -v 127.0.0.1 9050;
  tor      1315002  2.0  0.2  42240 35732 ?        S    21:41   0:01 /usr/bin/tor -f /etc/tor/torrc
  Connection to 127.0.0.1 9050 port [tcp/versiera] succeeded!

Gridcoin Onion Service

Gridcoin Plateaux Onion Service for Gridcoin Research is a dedicated node which can be accessed over Tor. It is maintaned to provide privacy and anonymity for using Gridcoin blockchain.

  connect=e5pkmk5e5zng5r6fo7wlij6n6hs3k3zsb2b6e4o7zuguydymjxvoyhqd.onion

Gridcoin Wallet configuration

Minimal recommended gridcoinresearch.conf configuration for maximum privacy.

# cat .GridcoinResearch/gridcoinresearch.conf;
  daemon=1
  listen=0
  port=32749

  maxconnections=16
  maxoutboundconnections=8
  disableupdatecheck=1
  debug=0

  ## anonymous
  discover=0
  proxy=127.0.0.1:9050
  tor=127.0.0.1:9050
  connect=e5pkmk5e5zng5r6fo7wlij6n6hs3k3zsb2b6e4o7zuguydymjxvoyhqd.onion

  ## rpc
  server=1
  rpcallowip=127.0.0.1
  rpcuser=1cvkvVxhmAHH
  rpcpassword=7vHyRr7H
  rpcssl=0

  ## boinc
  investor=1

This configuration allows to connect only the to the onion service and doesn't send a query to discover own IP address.

# bin/gridcoinresearchd getpeerinfo;
[
  {
    "id": 1760,
    "addr": "e5pkmk5e5zng5r6fo7wlij6n6hs3k3zsb2b6e4o7zuguydymjxvoyhqd.onion",
    "services": "00000001",
    "lastsend": 1621885418,
    "lastrecv": 1621885419,
    "bytessent": 8232,
    "bytesrecv": 41724,
    "conntime": 1621885386,
    "timeoffset": -1,
    "pingtime": 0.603814,
    "minping": 0.603814,
    "version": 180326,
    "subver": "/Halford:5.3.1/",
    "inbound": false,
    "startingheight": 2260614,
    "nTrust": 0,
    "banscore": 0
  }
]

References