Socket
Socket
Sign inDemoInstall

ssb-keys

Package Overview
Dependencies
Maintainers
12
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-keys - npm Package Compare versions

Comparing version 7.1.1 to 7.1.2

4

index.js

@@ -170,6 +170,6 @@ 'use strict'

boxed = u.toBuffer(boxed)
var sk = sodium.crypto_sign_ed25519_sk_to_curve25519(u.toBuffer(keys.private || keys))
var msg = pb.multibox_open(boxed, sk)
try {
var sk = sodium.crypto_sign_ed25519_sk_to_curve25519(u.toBuffer(keys.private || keys))
var msg = pb.multibox_open(boxed, sk)
return JSON.parse(''+msg)

@@ -176,0 +176,0 @@ } catch (_) { }

{
"name": "ssb-keys",
"description": "keyfile operations for ssb",
"version": "7.1.1",
"version": "7.1.2",
"homepage": "https://github.com/ssbc/ssb-keys",

@@ -6,0 +6,0 @@ "repository": {

@@ -1,3 +0,1 @@

var tape = require('tape')

@@ -17,1 +15,11 @@ var ssbkeys = require('../')

})
tape('return undefined for invalid content', function (t) {
var alice = ssbkeys.generate()
var bob = ssbkeys.generate()
var msg = ssbkeys.unbox('this is invalid content', alice.private)
t.equal(msg, undefined)
t.end()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc