lnd.xprv/tor
Oliver Gugger 6f3c8611f4
tor: convert onion v2 addrs into fake tcp6
If we use a chain backend that only understands IP addresses (like
Neutrino for example), we need to turn any Onion v2 host addresses into
a fake IPv6 representation, otherwise it would be resolved incorrectly.
To do this, we use the same fake IPv6 address format that bitcoind and
btcd use internally to represent Onion v2 hidden service addresses.
2020-11-30 22:42:57 +01:00
..
add_onion_test.go tor+server: add OnionStore to AddOnionConfig with file-based impl 2020-03-06 17:44:29 -08:00
add_onion.go tor+server: add OnionStore to AddOnionConfig with file-based impl 2020-03-06 17:44:29 -08:00
controller_test.go tor: use string comparison to check min supported version 2019-05-03 11:26:59 -07:00
controller.go Merge pull request #4056 from wpaulino/tor-onion-store 2020-03-12 18:49:57 -07:00
net.go brontide+tor:add timeout value for network connections 2020-09-16 11:50:03 +08:00
onionaddr.go tor: add onion address implementation 2018-06-04 20:41:30 -07:00
README.md server+tor: add support for Tor HASHEDPASSWORD authentication method 2020-03-10 10:32:44 -07:00
tor_test.go tor: convert onion v2 addrs into fake tcp6 2020-11-30 22:42:57 +01:00
tor.go tor: convert onion v2 addrs into fake tcp6 2020-11-30 22:42:57 +01:00

tor

The tor package contains utility functions that allow for interacting with the Tor daemon. So far, supported functions include:

  • Routing all traffic over Tor's exposed SOCKS5 proxy.
  • Routing DNS queries over Tor (A, AAAA, SRV).
  • Limited Tor Control functionality (synchronous messages only). So far, this includes:
    • Support for SAFECOOKIE, HASHEDPASSWORD, and NULL authentication methods.
    • Creating v2 and v3 onion services.

In the future, the Tor Control functionality will be extended to support v3 onion services, asynchronous messages, etc.

Installation and Updating

$ go get -u github.com/lightningnetwork/lnd/tor