Comparing version 7.1.1 to 7.1.2
@@ -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() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18920
478