admin group class
Kieran Gibb 3359b2537f
remove old code
2 years ago
lib use async level setup 2 years ago
test fix test 2 years ago
.gitignore add useful gitignore 2 years ago
LICENSE add README, LICENSE 2 years ago write improved README 2 years ago
example.js write improved README 2 years ago
index.js comment out crypto... 2 years ago
package.json pin to gitlab 2 years ago


An admin group is like a special kind of cobox-group. Rather than managing an archive of files together, it represents the group who manage a cobox hardware device, the admin group, allowing them to control which groups it replicates.

This is done by sending encrypted messages to cobox-hub.

An admin group simply contains a cobox-log which uses a kappa-core and multifeed instance, inherited from cobox-replicator, kappa-view-query for querying the log, and wraps it all with a cryptographic value encoder so the log is fully encrypted.

const crypto = require('cobox-crypto')
const Admin = require('./')

const storage = tmp()
const address = crypto.address()
const encryptionKey = crypto.encryptionKey()
const admin = Admin(storage, address, { encryptionKey })

let query = { $filter: { value: { type: 'peer/about' } } }
let stream ={ query })
stream.on('data', console.log)

admin.log.publish({ type: 'peer/about', content: { name: 'Magpie' } })