comit-network / rust-libp2p-tokio-socks5

Libp2p transport for sending TCP traffic via a SOCKS5 proxy e.g., over Tor network.
GNU General Public License v3.0
10 stars 4 forks source link

Tor's `create_ephemeral_hidden_service` #3

Open thomaseizinger opened 3 years ago

thomaseizinger commented 3 years ago

Tor supports "ephemeral hidden services": https://stem.torproject.org/api/control.html#stem.control.Controller.create_ephemeral_hidden_service

Not sure if it is in the scope of this project, but creating an ephemeral hidden service would - I think - allow for a much nicer API where the transport can manage the life-cycle of the transport and know about all the mappings etc.

It would then obviously be a Tor-specific transport but as described in https://github.com/comit-network/rust-libp2p-tokio-socks5/issues/1 this transport is already specific to Tor, it just not obvious from the name :)

I think there are two main use-cases here: