Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upnode-Tor is now open source, in clear and modular #1767
Comments
This comment has been minimized.
This comment has been minimized.
|
In fact I am not thinking to Snowflake only but implement full WebRTC so the browser can act also as the Onion router (this is already in the code but needs modifications inside browsers), so doing the Onion Proxy vai WebRTC as the client and performing the Onion Router via WebRTC as the server (ie not just relaying messages as the Snowflake WebRTC proxy is doing) At the same time we can think of implementing WebRTC in nodejs, @feross are you aware of js implementation of WebRTC in node (ie without external binaries) and/or DTLS? I don't see anything convincing up to now |
This comment has been minimized.
This comment has been minimized.
|
The finality is duplex streams like webtorrent.pipe(node-Tor) or bitcoin.pipe(node-Tor) or .pipe(node-Tor), where the transport is TCP, WS, WebRTC As an example, currently doing http.pipe(node-Tor) (already working but not the pipe way) and then https: http.tls.pipe(node-Tor), can't use xhr of course to pipe to the Tor protocol circuits so browserify cant' help here, neither nodejs |
This comment has been minimized.
This comment has been minimized.
|
See the more global concept here: https://github.com/Ayms/node-Tor#forking-node-tor |
This comment has been minimized.
This comment has been minimized.
|
And now the implementation and detailed docs : https://github.com/Ayms/node-Tor/tree/master/docs So you can easily turn webtorrent or any object to a Duplex object giving to it the evented pipe properties (see the simple typical setting example) and pipe it to the Tor protocol :
Inside browsers or not, using a RendezVous point or peer to peer, both via onion circuits between webtorrent peers Once WebRTC is implemented for browsers (working right now for the desktop clients), this might be part of the next steps las well as elliptic crypto |
FYI (https://github.com/Ayms/node-Tor) in case you want one day to integrate the Tor protocol inside webtorrent for anonymous sharing between peers
Maybe of some interest also is the way the demo app for node-Tor (previously Peersm app) stores the blobs in chunks, it's in clear too but I have removed the video streaming parts (but they can be seen too in the removed dir)