nervosnetwork / ckb

The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.
https://www.nervos.org
MIT License
1.17k stars 232 forks source link

Support for Tor Network in CKB #4656

Open eval-exec opened 2 months ago

eval-exec commented 2 months ago

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.

github-actions[bot] commented 1 month ago

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] commented 6 days ago

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.