ssb-private1
an secret-stack plugin which adds private-box (v1) auto-box/unbox functionality
Last updated 6 months ago by mixmix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ssb-private1 
SYNC missed versions from official npm registry.

ssb-private1

A scuttlebutt plugin which adds private box (v1) support to your ssb-server or secret-stack app.

Example Usage

const Server = require('ssb-server')

Server
  .use(require('ssb-db'}) // << required
  .use(require('ssb-private1'})

const server = Server()


const hey = {
  type: 'post',
  text: 'tongiht 8pm NZT suit me!',
  recps: [
    "@ye+QM09iPcDJD6YvQYjoQc7sLF/IFhmNbEqgdzQo3lQ=.ed25519",
    "@6CAxOI3f+LUOVrbAl0IemqiS7ATpQvr9Mdw9LC4+Uv0=.ed25519",
  ]
}

server.publish(hey, (err, msg) => {
  console.log(msg.value.content)
  // => xU0u+8H2osHpfcqn.....keb+gn3/x8924tonhtJ3KshG/0cLexziQ==.box

  server.close()
})

Dependencies

requires ssb-db >= 20.0.0

history

Previously this boxing / unboxing functionality was hard-coded into ssb-db. With the advent of private groups and different types of boxing / unboxing, I wanted to provide the option to leave out the original private-box style encryption, so that apps that don't use this older format can save energy trying to decrypt messages.

Current Tags

  • 1.0.1                                ...           latest (6 months ago)

2 Versions

  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (6)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |