Comments (3)
Would you consider a simple majority consensus logic based on something light (e.g. some hash)?
from tangle.
Potentially misunderstanding the suggestions here, but it could also seat quite well with the solution to #7 (Dirty Flags) and a simple majority based on the content hashes of the deltas (which may require comparing a list of hashes if multiple changes are being synced)?
from tangle.
Yeah, hashing is likely the solution to detect and resync peers who have desynced.
The issue I want to prevent is a malicious peer sending bogus messages (or omitting messages) to just one peer in an effort to sabotage them. Imagine an evil peer (we'll call peer E) is in a room with a bunch of others and they want to sabotage peer A. Peer E could send A a bunch of bogus messages causing peer A to continuously desync.
Hash consensus could be used by peer A to detect that it's desynced (and likely something like that should exist anyways) but it will still give peer A a degraded experience, or at least give peer A increased latency. Is there a better way?
Another issue is when joining a room how can a peer know it's being sent the correct data? Likely a peer should receive a hash of the room state from a few peers and the full room state from one peer and then verify the hash itself when it receives the room state.
from tangle.
Related Issues (12)
- Consider moving network code to Rust (?) HOT 1
- Add mechanism to read / write from WebAssembly memory HOT 2
- Throw better errors when the matchmaking server can't be reached
- Is there a way to distinguish players? HOT 2
- Cannot read property: `_in_call_that_will_be_reverted` HOT 3
- Take less frequent snapshots HOT 1
- Reduce size of `rust_utilities.wasm`
- Document Signaling / Room Server
- In-Module 'Dirty Pages' Array HOT 14
- Consider giving JavaScript host hooks to respond to rollbacks
- Consider using unreliable RTCDataChannels for better latency
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 tangle.