upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/tor.h
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 11:54:35 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 11:54:35 -0300
commit53cc17d621f55b8904812fae5df90ef089bf5aaf (patch)
tree794d251d6bdf51f0d488469ff050ece1846cdbea /src/tor.h
parentc009e7cc0c5093f4c4add741cb9d131d19956871 (diff)
net: add managed Tor hidden service bootstrap
Diffstat (limited to 'src/tor.h')
-rw-r--r--src/tor.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tor.h b/src/tor.h
new file mode 100644
index 0000000..482e773
--- /dev/null
+++ b/src/tor.h
@@ -0,0 +1,22 @@
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
12bool BtfStartManagedTor(const std::string& torPathOpt, std::string& errOut);
13void BtfStopManagedTor();
14bool BtfManagedTorEnabled();
15std::string BtfManagedTorStatus();
16
17std::string BtfBuildManagedTorrcForTest(const std::string& dataDir,
18 const std::string& hiddenServiceDir,
19 unsigned short socksPort,
20 unsigned short p2pPort);
21
22#endif