/ssb-study

Secure Scuttlebutt study notes

Primary LanguageRust

ssb-study

The default implementation of ssb is in javascript.

Glue for everything

RPC (as explained in the protocol guide) and multiplexing

Handshake (as explained in the protocol guide)

Plugins

RPCs are implemented as plugins for secret-stack.

https://github.com/ssbc/secret-stack/blob/master/PLUGINS.md

  • [ "blobs", "..." ]
  • legacy?
  • Append only db (feed)

RPC

Method types:

foo: 'async',        //a function with a callback.
bar: 'sync',         //a function that returns a value
                     //(note this is converted to an async function for the client)
allTheFoos: 'source' //a source pull-stream (aka, readable)
writeFoos: 'sink',   //a sink pull-stream (aka, writable)
fooPhone: 'duplex',  //a duplex pull-stream