1.0.2 • Published 2 years ago
ssb-bendy-butt v1.0.2
SSB Bendy Butt
Implementation of bendy butt in JS.
You can use this module as an ssb-db2 plugin, or you can use it as a standalone tool to generate and validate bendybutt messages.
Installation
npm install ssb-bendy-butt
Requires Node.js 12 or higher.
Usage in ssb-db2
- Requires Node.js 12 or higher
- Requires
secret-stack@^6.2.0
- Requires
ssb-db2@>=5.0.0
SecretStack({appKey: require('ssb-caps').shs})
.use(require('ssb-master'))
+ .use(require('ssb-db2'))
+ .use(require('ssb-bendy-butt'))
.use(require('ssb-conn'))
.use(require('ssb-blobs'))
.call(null, config)
Now you can call ssb-db2's create(opts)
API providing opts.feedFormat
as "bendybutt-v1"
.
Usage as a standalone
Notice you import the /format
from the module.
const ssbKeys = require('ssb-keys');
const bendyButtFormat = require('ssb-bendy-butt/format');
const msgVal = bendyButtFormat.newNativeMsg({
keys: ssbKeys.generate(null, null, 'bendybutt-v1'),
content: {
type: 'post',
text: 'Hello, world!',
},
timestamp: Date.now(),
previous: null,
hmacKey: null,
});
This module conforms with ssb-feed-format so with ssb-bendy-butt you can use all the methods specified by ssb-feed-format.
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.12.5
2 years ago
0.12.4
3 years ago
0.12.3
3 years ago
0.12.2
3 years ago
0.12.1
3 years ago
0.12.0
3 years ago
0.11.0
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.0
3 years ago
0.3.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago