tor: Add option to encrypt Tor private key

This commit lays the groundwork for enabling the option of encrypting a Tor private key on disk, and removes the onion type parameters from the OnionStore interface methods, since they are unused.
This commit is contained in:
Orbital committed 2022-09-06 15:14:08 -05:00
1 parent 9f013f5058
commit 177f365538
3 files changed
+186 -64

No files matched your search

+3
View File
@@ -45,6 +45,9 @@ type OnionAddr struct {
// Port is the port of the onion address.
Port int
// PrivateKey is the onion address' private key.
PrivateKey string
}
// A compile-time check to ensure that OnionAddr implements the net.Addr