upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/tor.h
blob: cfb87a5365404c1c14df8a7ffed2e8a38a8d84dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2026 Bitflash developers
// Distributed under the MIT/X11 software license.
//
// Managed Tor process support. This is transport bootstrapping only: it does
// not touch consensus, wallet keys, mining, or the .btf identity.

#ifndef BITFLASH_TOR_H
#define BITFLASH_TOR_H

#include <string>

bool BtfStartManagedTor(const std::string& torPathOpt, std::string& errOut);
void BtfStopManagedTor();
bool BtfManagedTorEnabled();
std::string BtfManagedTorStatus();
bool BtfBundledTorPath(std::string& torPathOut);

std::string BtfBuildManagedTorrcForTest(const std::string& dataDir,
                                        const std::string& hiddenServiceDir,
                                        unsigned short socksPort,
                                        unsigned short controlPort,
                                        unsigned short p2pPort);

#endif