Comments (7)
yes, yes it would, peerconnections have limits, see #17
from p2pt.
Yes, I already linked to #17 in my question. I have additional questions if the answer is yes.
from p2pt.
In #17 I mentioned that peer connections have a limit of 256 connections, browsers simply don't allow more connections than that. I'm not sure if browsers would "crash" per say.
I think bugout is doing the exact same thing that this project is doing, although this project allows for "specific" urls, bugout automatically sets them for you.
Yes, P2PT can be used to provide a worldwide "gossip" protocol similar to bugout, although I've some privacy concerns I've mentioned in #9 , I've not been able to fix the code because I haven't found the time, and yes you're right P2PT can be used to do insane things from building a decentralized blockchain to a lot of different stuff
from p2pt.
@therealadityashankar I've been playing with bugout for over a year.. I had to build out URL construction myself. What I thought was great about P2PT is I didn't have to do anything at all. I ran the codepen in two browser tabs, then on my phone using the mobile network and all three were connected together without doing anything special. Bugout was built to simulate server <-> client using P2P, whereas it seems P2PT was built for true fully meshed P2P.
As for the privacy concerns, bugout is using NACL to encrypt communication between peers, if I understand it correctly. I wish I could help with that issue on P2PT, but my javascript fu just isn't at that level yet.
from p2pt.
P2PT's original intent is to easily make WebRTC apps making use of WebTorrent trackers which is publicly available for use. P2PT makes WebTorrent trackers not only for torrenting, but for general purpose WebRTC apps.
Anything that's an extension of it is better to be a separate project. That'd be the best choice.
P2PT is a fully meshed browser to browser P2P solution. Is that correct to say it is "fully meshed?"
Yes
If so, what would occur if 50,000 people suddenly ran your codepen examples? Would everyone's browsers crash?
Idk for sure if browsers would crash, but there's a maximum number of peer connection limit in browsers.
As for the privacy concerns, bugout is using NACL to encrypt communication between peers
Even so it also uses public WebTorrent trackers to establist P2P I believe. So, the trust in WebTorrent tracker is equal in both. NACL can be used on top of P2PT to have a more secure messaging, yes.
from p2pt.
@subins2000 - Thank you for the answers. What I would like to build using P2PT is a global "protocol" of sorts for social networking. Based on what you're saying, I would need to figure out how to extend the mesh beyond the browser limits if the network of connected were to grow beyond those limits. I've seen some ideas for that with WebRTC many-to-many live video that I could explore.
Privacy isn't really a concern to me yet, but securing messages from man in the middle attacks is a concern. I would want to make sure if Alice sends a message to Bob, that message is not altered. Signing the message with a public key is probably a way to do it.
Again, I appreciate the info.
from p2pt.
do note that p2pt is crazy heavy as-is, I'd recommend using browser's native subtlecrypto over https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto over NACL
Also, do note public-key authentication does not prevent MITM attacks, in the end of #9 I proposed a solution for this
from p2pt.
Related Issues (20)
- Issues connecting with Peers on Different Networks HOT 8
- Possibility to destroy only tracker connection and not peer connections HOT 1
- Slow tracker connection HOT 1
- Does not connect to peer when using multiple trackers HOT 1
- Codepen example no longer works HOT 1
- can you do video streaming? HOT 1
- Tracker-swarm to help with low quality public tracker servers HOT 2
- How to send files? HOT 2
- BTorrent tracker url is wrong HOT 1
- add peer
- 同学,您这个项目引入了674个开源组件,存在7个漏洞,辛苦升级一下
- Unexpected behaviour when bundled by Vite (and likely WebPack and other bundlers)
- addTrack to peer connection
- Consider switching from randombytes to some other dependency that does the same thing HOT 1
- Bump bittorrent-tracker dependancy due to WebRTC URL handling changes in Chromium v110 HOT 1
- Hello Mr Decentralized 🙏 HOT 2
- Chrome and Spinoffs eg. Edge not working HOT 2
- Modernify HOT 2
- TURN Server and ICE Candidates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2pt.