Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit c284574

Browse files
gkrizekorbitalturtle
authored andcommitted
docs: Add a section in configuring_tor about the --tor.encryptkey flag
1 parent 073c990 commit c284574

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/configuring_tor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,8 @@ base directory. This will allow `lnd` to recreate the same hidden service upon
182182
restart. If you wish to generate a new onion service, you can simply delete this
183183
file. The path to this private key file can also be modified with the
184184
`--tor.privatekeypath` argument.
185+
186+
You can optionally encrypt the Tor private key by using the `--tor.encryptkey`
187+
flag. This will still write to the same private key files. However instead of
188+
writing the plaintext private key, `lnd` encrypts the private key using the
189+
wallet's seed and writes the encrypted blob to the file.

sample-lnd.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,8 @@ litecoin.node=ltcd
935935
;The path to the private key of the watchtower onion service being created
936936
; tor.watchtowerkeypath=/other/path/
937937

938+
; Instructs lnd to encrypt the private key using the wallet's seed.
939+
; tor.encryptkey=true
938940

939941
[watchtower]
940942

0 commit comments

Comments
 (0)