lnd/tor
Oli 8047149c6a
multi: upgrade to btcd v2 modules
Migrate all btcd dependencies to the new per-package v2 modules (wire/v2,
txscript/v2, chaincfg/v2, chainhash/v2, btcutil/v2, psbt/v2, btcec/v2)
introduced by btcd v0.26.0, and pin the tagged ecosystem versions:
btcwallet v0.17.0, neutrino v0.18.0 and lightning-onion v1.4.0.

The bulk of the import rewrite was produced by the scripted diff from
https://github.com/btcsuite/btcd/pull/2547 (followed by 'make rpc'). The
address symbols that moved out of btcutil into the new address package
are imported as btcaddr where a local "address" variable would otherwise
shadow them. The go.mod/go.sum updates and the remaining manual
compilation fixes are folded into this single commit so it builds on its
own (the migration was previously split into a reproducible scripted-diff
plus follow-ups, intended to be squashed on merge).
2026-06-24 10:58:36 -07:00
..
cmd_info.go tor+healthcheck: fix healthcheck for multiple services 2021-11-23 09:53:36 +01:00
cmd_info_test.go tor: replace defer cleanup with t.Cleanup 2022-10-13 17:47:04 +08:00
cmd_onion.go multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03:00
cmd_onion_test.go multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03:00
controller.go tor: skip onion cleanup before service creation 2026-06-22 19:00:18 -05:00
controller_test.go tor: skip onion cleanup before service creation 2026-06-22 19:00:18 -05:00
go.mod multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
go.sum multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
log.go tor: update btclog dep 2024-10-26 14:18:32 +02:00
net.go build: update to version of neutrino w/ BIP 155 support 2022-05-03 15:48:37 -07:00
onionaddr.go tor: Add option to encrypt Tor private key 2022-09-06 15:14:08 -05:00
README.md multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03:00
tor.go multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03: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 v3 onion services.

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

Installation and Updating

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