ssbc/ssb-same-as

Name: ssb-same-as

Owner: Secure Scuttlebutt Consortium

Description: A scuttlebot plugin that provides a stream of which feeds are (and are not) the same as other feeds.

Created: 2017-12-07 03:10:11.0

Updated: 2018-05-24 14:45:16.0

Pushed: 2017-12-13 12:28:19.0

Homepage: null

Size: 4

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ssb-same-as

A scuttlebot plugin that provides a stream of which feeds are (and are not) the same as other feeds.

The basis for creating the illusion of multi-feed identities in SSB!

Based on ssb-friends and graphreduce

TODO
Spec
Assert that you are the same as another feed

pe: 'contact',
ntact: TARGET_FEED_ID,
llowing: true, // for backwards compat reasons
meAs: true

Block a sameAs

pe: 'contact',
ntact: TARGET_FEED_ID,
llowing: true, // for backwards compat reasons
meAs: false

Agree with another feed's assertion

pe: 'contact',
ntact: TARGET_FEED_ID,
llowing: true, // for backwards compat reasons
meAs: {
SOURCE_FEED_ID: true // or `false` to remove an agreement


Logic behind sameAs resolution

This module uses graphreduce to walk the sameAs links, so this means that any topology of links will be resolved.

Exposed API (as sbot plugin)
sbot.sameAs.stream({live: false, sync: true, old: true}) source

Gets a list of all of the resolved and verified sameAs links between feeds.

m: 'a', to: 'b', value: true}
m: 'a', to: 'c', value: true}
m: 'a', to: 'd', value: true}
m: 'b', to: 'a', value: true}
m: 'b', to: 'c', value: true}
m: 'b', to: 'd', value: true}

sbot.sameAs.get({id}, cb) async

Gets a list of all of the verified sameAs links for a given feed.


': true,
': true,
': true

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.