Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tor Support for Bitcoin Core Nodes Connecting to Civkit #113

Open
MarketMadi opened this issue Jan 4, 2024 · 1 comment
Open

Add Tor Support for Bitcoin Core Nodes Connecting to Civkit #113

MarketMadi opened this issue Jan 4, 2024 · 1 comment

Comments

@MarketMadi
Copy link
Contributor

As an orderbook runner, I need to be able to connect to both clearnet and tor for bitcoin nodes. Tor has not yet been implemented.

A new listener will need to be implemented to allow tor connections. A good starting point is server.rs and bitcoind_client.rs to review and add tor support.

Here are some more contextual and supporting documents
https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md
https://github.com/bitcoin/bitcoin/blob/master/src/torcontrol.cpp

@IAmBabaorum
Copy link

I think there are 2 different things that can be achieved:

  • a) implementing tor support such as a civkit sample (the client) can connect to civkit node (the server)
  • b) connecting to a non-hosted bitcoin node over tor from the civkit node

I believe for now it might be easier to assume server operator run their own bitcoin nodes locally.

About a), I think it’s about adding a new thread torcontrol.rs implementing the Tor Control protocol (https://spec.torproject.org/control-spec/protocol-outline.html) to port bind with tor as a proxy. A new TorControlThread can be started in server main initialization sequence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants