Socket
Socket
Sign inDemoInstall

@exodus/airgap-beacon-core

Package Overview
Dependencies
21
Maintainers
86
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-exodus.0 to 4.0.0-exodus.1

17

dist/cjs/transports/clients/CommunicationClient.js

@@ -5,4 +5,5 @@ "use strict";

const airgap_beacon_utils_1 = require("@exodus/airgap-beacon-utils");
const ed25519_1 = require("@stablelib/ed25519");
const blakejs_1 = require("blakejs");
// @ts-ignore
const sodium_crypto_1 = require("@exodus/sodium-crypto");
const blakejs_1 = require("@exodus/blakejs");
const nacl = require("tweetnacl");

@@ -38,5 +39,5 @@ /**

// https://github.com/StableLib/stablelib/blob/a7bac13/packages/x25519-session/x25519-session.ts#L61
const myPublicKey = (0, ed25519_1.convertPublicKeyToX25519)(selfKeypair.publicKey);
const mySecretKey = (0, ed25519_1.convertSecretKeyToX25519)(selfKeypair.secretKey);
const theirPublicKey = (0, ed25519_1.convertPublicKeyToX25519)(Buffer.from(otherPublicKey, 'hex'));
const myPublicKey = await (0, sodium_crypto_1.convertPublicKeyToX25519)(selfKeypair.publicKey);
const mySecretKey = await (0, sodium_crypto_1.convertPrivateKeyToX25519)(selfKeypair.secretKey);
const theirPublicKey = await (0, sodium_crypto_1.convertPublicKeyToX25519)(Buffer.from(otherPublicKey, 'hex'));
const sk = nacl.scalarMult(mySecretKey, theirPublicKey);

@@ -61,5 +62,5 @@ const state = (0, blakejs_1.blake2bInit)(64, undefined);

// https://github.com/ExodusMovement/exodus-mobile/pull/12437/files
const myPublicKey = (0, ed25519_1.convertPublicKeyToX25519)(selfKeypair.publicKey);
const mySecretKey = (0, ed25519_1.convertSecretKeyToX25519)(selfKeypair.secretKey);
const theirPublicKey = (0, ed25519_1.convertPublicKeyToX25519)(Buffer.from(otherPublicKey, 'hex'));
const myPublicKey = await (0, sodium_crypto_1.convertPublicKeyToX25519)(selfKeypair.publicKey);
const mySecretKey = await (0, sodium_crypto_1.convertPrivateKeyToX25519)(selfKeypair.secretKey);
const theirPublicKey = await (0, sodium_crypto_1.convertPublicKeyToX25519)(Buffer.from(otherPublicKey, 'hex'));
const sk = nacl.scalarMult(mySecretKey, theirPublicKey);

@@ -66,0 +67,0 @@ const state = (0, blakejs_1.blake2bInit)(64, undefined);

@@ -5,3 +5,3 @@ "use strict";

const bs58check = require("bs58check");
const blakejs_1 = require("blakejs");
const blakejs_1 = require("@exodus/blakejs");
const utf8_1 = require("@stablelib/utf8");

@@ -8,0 +8,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSenderId = void 0;
const blakejs_1 = require("blakejs");
const blakejs_1 = require("@exodus/blakejs");
const bs58check = require("bs58check");

@@ -6,0 +6,0 @@ /**

{
"name": "@exodus/airgap-beacon-core",
"version": "4.0.0-exodus.0",
"version": "4.0.0-exodus.1",
"description": "> TODO: description",

@@ -33,7 +33,7 @@ "author": "Andreas Gassmann <a.gassmann@papers.ch>",

"dependencies": {
"@exodus/airgap-beacon-types": "4.0.0-exodus.0",
"@exodus/airgap-beacon-utils": "4.0.0-exodus.0",
"@stablelib/ed25519": "^1.0.3",
"@exodus/airgap-beacon-types": "4.0.0-exodus.1",
"@exodus/airgap-beacon-utils": "4.0.0-exodus.1",
"@exodus/sodium-crypto": "^3.3.0",
"@stablelib/utf8": "^1.0.1",
"blakejs": "^1.1.0",
"@exodus/blakejs": "^1.1.1-exodus.0",
"bs58check": "2.1.2",

@@ -43,4 +43,6 @@ "tweetnacl": "^1.0.3"

"devDependencies": {
"@types/chrome": "0.0.163",
"@stablelib/ed25519": "^1.0.3",
"@stablelib/x25519-session": "^1.0.4"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc