git ssb

2+

cel / scuttlebot.io



Tree: 34d957aac81ecdd3f4531d9e49c2d663178b0b32

Files: 34d957aac81ecdd3f4531d9e49c2d663178b0b32 / tmpl / docs / basics / create-secondary-users.md

506 bytesRaw

Create secondary users

By default, Scuttlebot uses a "master" identity/feed, which sbot.publish() will append new messages to. If you want to publish to additional feeds, you can load the keypair and then use this library to do so.

var ssbFeed = require('ssb-feed')
var ssbKeys = require('ssb-keys')

// create the new feed
var alice = ssbFeed(sbot, ssbKeys.generate())

// Post to alice's feed
alice.publish({
  type: 'post',
  text: 'hello world, I am alice.'
}, function (err) { ... })

Built with git-ssb-web