How to use the ssb-keys.unboxKey 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 ssbc / ssb-db / minimal.js View on Github external
    key: function (content) { return ssbKeys.unboxKey(content, keys) },
    value: function (content, key) { return ssbKeys.unboxBody(content, key) }
github ssbc / ssb-db / minimal.js View on Github external
    key: function (content) { return ssbKeys.unboxKey(content, keys) },
    value: function (content, key) { return ssbKeys.unboxBody(content, key) }
github ssbc / ssb-identities / index.js View on Github external
key: function (content) {
      for(var i = 0;i < keys.length;i++) {
        var key = ssbKeys.unboxKey(content, keys[i])
        if(key) return key
      }
    },
    value: function (content, key) { return ssbKeys.unboxBody(content, key) }