ckb icon indicating copy to clipboard operation
ckb copied to clipboard

Support for Tor Network in CKB

Open eval-exec opened this issue 1 year ago • 3 comments

Feature Request

Is your feature request related to a problem? Please describe.

Bitcoin supports the Tor network. I believe CKB should support it as well.

Describe the solution you'd like

Bitcoin's implementation includes starting/connecting a tor server and using the Tor server's control socket API to create an onion service. Similarly, I propose adding flags to CKB such as -proxy=ip:port (need #4473) , -onion=ip:port, -onlynet=onion, -torcontrol=, and -torpassword.

I am considering the following approach like Bitcoin:

  1. Start a Tor server that listens on port 9050. (Or enable tor's control socket API on 9051, then let CKB use the tor socket API tor create onion service self)
  2. Run CKB using a proxy to operate behind the Tor network: ./ckb run --proxy=127.0.0.1:9050.

Describe alternatives you've considered

There is a Tor implementation in Rust called arti, but I am concerned that it may not be production-ready.

eval-exec avatar Sep 22 '24 07:09 eval-exec

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 23 '24 02:10 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 24 '24 02:11 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Feb 11 '25 01:02 github-actions[bot]

Done in #4733 ?

doitian avatar Dec 24 '25 01:12 doitian