Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonld-signatures

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonld-signatures - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

6

CHANGELOG.md
# jsonld-signatures ChangeLog
## 2.1.5 - 2018-02-27
### Changed
- Use `chloride`, a faster and better maintained implementation
of `Ed25519`.
## 2.1.4 - 2018-02-22

@@ -4,0 +10,0 @@

8

dist/node6/lib/suites/Ed25519Signature2018.js

@@ -53,3 +53,3 @@ /**

// optimize using node libraries
const ed25519 = require('ed25519');
const chloride = require('chloride');
const bs58 = require('bs58');

@@ -62,3 +62,3 @@

const tbs = Buffer.concat([new Buffer(encodedHeader + '.', 'utf8'), new Buffer(verifyData.data, verifyData.encoding)]);
const buffer = ed25519.Sign(tbs, privateKey);
const buffer = chloride.crypto_sign_detached(tbs, privateKey);
encodedSignature = util.encodeBase64Url(buffer.toString('binary'), { forge });

@@ -120,3 +120,3 @@ } else {

// optimize using node libraries
const ed25519 = require('ed25519');
const chloride = require('chloride');
const bs58 = require('bs58');

@@ -129,3 +129,3 @@

const tbs = Buffer.concat([new Buffer(encodedHeader + '.', 'utf8'), new Buffer(verifyData.data, verifyData.encoding)]);
return ed25519.Verify(tbs, new Buffer(rawSignature, 'binary'), publicKey);
return chloride.crypto_sign_verify_detached(new Buffer(rawSignature, 'binary'), tbs, publicKey);
}

@@ -132,0 +132,0 @@

@@ -37,3 +37,3 @@ /**

+-------+-----------------------------------------------------------+
*/
*/

@@ -46,3 +46,3 @@ const encodedHeader = util.encodeBase64Url(

// optimize using node libraries
const ed25519 = require('ed25519');
const chloride = require('chloride');
const bs58 = require('bs58');

@@ -57,3 +57,3 @@

new Buffer(verifyData.data, verifyData.encoding)]);
const buffer = ed25519.Sign(tbs, privateKey);
const buffer = chloride.crypto_sign_detached(tbs, privateKey);
encodedSignature = util.encodeBase64Url(

@@ -108,3 +108,3 @@ buffer.toString('binary'), {forge});

// optimize using node libraries
const ed25519 = require('ed25519');
const chloride = require('chloride');
const bs58 = require('bs58');

@@ -119,4 +119,4 @@

new Buffer(verifyData.data, verifyData.encoding)]);
return ed25519.Verify(
tbs, new Buffer(rawSignature, 'binary'), publicKey);
return chloride.crypto_sign_verify_detached(
new Buffer(rawSignature, 'binary'), tbs, publicKey);
}

@@ -123,0 +123,0 @@

{
"name": "jsonld-signatures",
"version": "2.1.4",
"version": "2.1.5",
"description": "An implementation of the Linked Data Signatures specifications for JSON-LD in JavaScript.",

@@ -37,3 +37,3 @@ "homepage": "https://github.com/digitalbazaar/jsonld-signatures",

"bs58": "^4.0.1",
"ed25519": "0.0.4",
"chloride": "^2.2.8",
"jsonld": "^0.5.20",

@@ -110,4 +110,4 @@ "node-forge": "^0.7.1",

"bs58": false,
"ed25519": false
"chloride": false
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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