How to use the ssb-keys.sign function in ssb-keys

To help you get started, we’ve selected a few ssb-keys examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ssb-junkyard / ssb-feed / message.js View on Github external
function sign (msg, keys) {

    msg.signature = ssbKeys.sign(keys, encode(msg))

    return msg
  }