Coder Social home page Coder Social logo

cable's Introduction

Cable Protocol

Version: 1.0-draft8

Cable is a peer-to-peer protocol for private group chats, called cabals.

Cable operates differently from the traditional server-client model, where the server is a centralized authority. Instead, in Cable, every node in the network is equal to each other. Nodes of a cabal share data with each other in order to build a view of the state of that cabal.

The purpose of the Cable Protocol is to facilitate the creation and sync of cabals, by allowing peers to exchange cryptographically signed documents with each other, such as chat messages, spread across various user-defined channels. All of this happens over an encrypted channel between each peer.

Cable consists of three protocols:

  1. The Cable Handshake, which determines if two peers are compatible and establishes a secure channel between them.
  2. The Cable Wire Protocol, which allows two peers to request and exchange signed data (posts) from each other by their content hashes.
  3. The Cable Moderation Protocol, which layers a content moderation system on top of the Cable Wire Protocol.

Cable is designed to be:

  1. fairly simple to implement in any language, with minimal dependencies
  2. general enough to be used across different network transports
  3. useful, even if written as a partial implementation
  4. efficient in its use of network resources, by
    1. syncing only the relevant subsets of the full dataset, and
    2. being compact over the wire
  5. not specific to any particular kind of database backend

While the overall structure of these protocols is unlikely to change, these documents are still under active development, and should not be considered stable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.