lnd.xprv/tor
Wilmer Paulino 2dfd6a7a3e
tor+server: add OnionStore to AddOnionConfig with file-based impl
In this commit, we modify the AddOnionConfig struct to include an
abstract OnionStore, which will be responsible for storing all relevant
information of an onion service. We also add a file-based implementation
of the interface to maintain the same behavior of storing an onion
service's private key in a file.
2020-03-06 17:44:29 -08: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 tor: move AddOnion to its own file 2020-03-06 16:01:47 -08:00
net.go tor: streamline package to better follow the Effective Go guidelines 2018-06-04 20:41:28 -07:00
onionaddr.go tor: add onion address implementation 2018-06-04 20:41:30 -07:00
README.md tor: add inital tor controller implementation 2018-06-04 20:41:36 -07:00
tor.go multi: fix various typos in comments 2018-09-07 06:51:49 +02: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 authentication only as a sane default.
    • Creating v2 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