New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digitalbazaar/x25519-key-agreement-key-2020

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/x25519-key-agreement-key-2020 - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

CHANGELOG.md
# x25519-key-agreement-key-2020 Changelog
## 1.2.1 - 2021-05-06
### Fixed
- Fix `package.json` browser section alias for `crypto.js` (was causing downstream
webpack errors).
## 1.2.0 - 2021-04-02

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

3

lib/crypto.js

@@ -46,3 +46,4 @@ /*!

let deriveSecret, generateKeyPair;
let deriveSecret;
let generateKeyPair;
if(crypto.diffieHellman) {

@@ -49,0 +50,0 @@ deriveSecret = deriveSecretNative;

@@ -65,3 +65,5 @@ /*!

static async from(options = {}) {
// Check to see if this is an X25519KeyAgreementKey2019
if(options.publicKeyBase58) {
// Convert it to a 2020 key pair instance
return this.fromX25519KeyAgreementKey2019(options);

@@ -86,3 +88,4 @@ }

} = {}) {
let publicKeyMultibase, privateKeyMultibase;
let publicKeyMultibase;
let privateKeyMultibase;

@@ -293,3 +296,3 @@ if(publicKeyBase58) {

*
* @returns {Promise<string>} Derived secret.
* @returns {Promise<Uint8Array>} Derived secret.
*/

@@ -345,3 +348,4 @@ async deriveSecret({publicKey}) {

let fingerprintBytes, fingerprintKeyBytes;
let fingerprintBytes;
let fingerprintKeyBytes;
try {

@@ -348,0 +352,0 @@ fingerprintBytes = _multibaseDecode({text: fingerprint});

{
"name": "@digitalbazaar/x25519-key-agreement-key-2020",
"version": "1.2.0",
"version": "1.2.1",
"description": "An X25519 (Curve25519) DH (Diffie-Hellman) key implementation to work with the X25519 2020 Crypto suite.",

@@ -69,5 +69,3 @@ "homepage": "https://github.com/digitalbazaar/x25519-key-agreement-key-2020",

"browser": {
"buffer": false,
"crypto": false,
"util": false
"./lib/crypto.js": "./lib/crypto-browser.js"
},

@@ -74,0 +72,0 @@ "engines": {

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