@exodus/airgap-beacon-core
Advanced tools
Comparing version 4.0.0-exodus.0 to 4.0.0-exodus.1
@@ -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" | ||
} | ||
} |
96438
2405
3
+ Added@exodus/sodium-crypto@^3.3.0
+ Added@exodus/airgap-beacon-types@4.0.0-exodus.1(transitive)
+ Added@exodus/airgap-beacon-utils@4.0.0-exodus.1(transitive)
+ Added@exodus/libsodium-wrappers@1.0.8(transitive)
+ Added@exodus/react-native-crypto-shim@1.0.0(transitive)
+ Added@exodus/sodium-crypto@3.3.1(transitive)
- Removed@stablelib/ed25519@^1.0.3
- Removedblakejs@^1.1.0
- Removed@exodus/airgap-beacon-types@4.0.0-exodus.0(transitive)
- Removed@exodus/airgap-beacon-utils@4.0.0-exodus.0(transitive)
- Removed@stablelib/binary@1.0.1(transitive)
- Removed@stablelib/ed25519@1.0.3(transitive)
- Removed@stablelib/hash@1.0.1(transitive)
- Removed@stablelib/int@1.0.1(transitive)
- Removed@stablelib/random@1.0.2(transitive)
- Removed@stablelib/sha512@1.0.1(transitive)
- Removed@stablelib/wipe@1.0.1(transitive)
- Removed@types/chrome@0.0.163(transitive)
- Removed@types/filesystem@0.0.36(transitive)
- Removed@types/filewriter@0.0.33(transitive)
- Removed@types/har-format@1.2.15(transitive)
- Removed@types/libsodium-wrappers@0.7.9(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedlibsodium@0.7.13(transitive)
- Removedlibsodium-wrappers@0.7.9(transitive)