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

node-Tor is now open source, in clear and modular #1767

Open
Ayms opened this issue Oct 26, 2019 · 4 comments
Open

node-Tor is now open source, in clear and modular #1767

Ayms opened this issue Oct 26, 2019 · 4 comments

Comments

@Ayms
Copy link

@Ayms Ayms commented Oct 26, 2019

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)

@Ayms

This comment has been minimized.

Copy link
Author

@Ayms Ayms commented Oct 27, 2019

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

@Ayms

This comment has been minimized.

Copy link
Author

@Ayms Ayms commented Nov 16, 2019

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

@Ayms

This comment has been minimized.

Copy link
Author

@Ayms Ayms commented Jan 3, 2020

See the more global concept here: https://github.com/Ayms/node-Tor#forking-node-tor

@Ayms

This comment has been minimized.

Copy link
Author

@Ayms Ayms commented Jan 28, 2020

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 :

webtorrent.pipe(node_Tor)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.