diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-13 14:21:15 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-13 14:21:15 -0300 |
| commit | 5dec9b16a5b98ed0e24ec7113b867f22be2d0026 (patch) | |
| tree | e06544e9e7516203bc4309460438a0486b0328e4 /src/tor.h | |
| parent | c009e7cc0c5093f4c4add741cb9d131d19956871 (diff) | |
| parent | 1bf78c53404d83638177889590ce199c87af63bc (diff) | |
Merge pull request 'net: add managed Tor hidden service bootstrap' (#33) from embedded-tor-manager into main
Diffstat (limited to 'src/tor.h')
| -rw-r--r-- | src/tor.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tor.h b/src/tor.h new file mode 100644 index 0000000..7c5c603 --- /dev/null +++ b/src/tor.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright (c) 2026 Bitflash developers | ||
| 2 | // Distributed under the MIT/X11 software license. | ||
| 3 | // | ||
| 4 | // Managed Tor process support. This is transport bootstrapping only: it does | ||
| 5 | // not touch consensus, wallet keys, mining, or the .btf identity. | ||
| 6 | |||
| 7 | #ifndef BITFLASH_TOR_H | ||
| 8 | #define BITFLASH_TOR_H | ||
| 9 | |||
| 10 | #include <string> | ||
| 11 | |||
| 12 | bool BtfStartManagedTor(const std::string& torPathOpt, std::string& errOut); | ||
| 13 | void BtfStopManagedTor(); | ||
| 14 | bool BtfManagedTorEnabled(); | ||
| 15 | std::string BtfManagedTorStatus(); | ||
| 16 | |||
| 17 | std::string BtfBuildManagedTorrcForTest(const std::string& dataDir, | ||
| 18 | const std::string& hiddenServiceDir, | ||
| 19 | unsigned short socksPort, | ||
| 20 | unsigned short controlPort, | ||
| 21 | unsigned short p2pPort); | ||
| 22 | |||
| 23 | #endif | ||