Merge pull request #1004 from waku-org/fix/waku-message-encryption/constants

This commit is contained in:
fryorcraken.eth 2022-11-04 16:25:35 +11:00 committed by GitHub
commit 158f04b051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

2
package-lock.json generated
View File

@ -22898,6 +22898,7 @@
"dependencies": { "dependencies": {
"@noble/secp256k1": "^1.3.4", "@noble/secp256k1": "^1.3.4",
"@waku/byte-utils": "*", "@waku/byte-utils": "*",
"@waku/core": "*",
"@waku/interfaces": "*", "@waku/interfaces": "*",
"js-sha3": "^0.8.0" "js-sha3": "^0.8.0"
}, },
@ -27661,6 +27662,7 @@
"@typescript-eslint/eslint-plugin": "^5.8.1", "@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1", "@typescript-eslint/parser": "^5.8.1",
"@waku/byte-utils": "*", "@waku/byte-utils": "*",
"@waku/core": "*",
"@waku/interfaces": "*", "@waku/interfaces": "*",
"chai": "^4.3.6", "chai": "^4.3.6",
"cspell": "^5.14.0", "cspell": "^5.14.0",

View File

@ -59,7 +59,8 @@
"@noble/secp256k1": "^1.3.4", "@noble/secp256k1": "^1.3.4",
"@waku/byte-utils": "*", "@waku/byte-utils": "*",
"@waku/interfaces": "*", "@waku/interfaces": "*",
"js-sha3": "^0.8.0" "js-sha3": "^0.8.0",
"@waku/core": "*"
}, },
"devDependencies": { "devDependencies": {
"fast-check": "^2.14.0", "fast-check": "^2.14.0",

View File

@ -1,4 +1,4 @@
import { Symmetric } from "./constants"; import { Symmetric } from "./constants.js";
import { getSubtle, randomBytes } from "./crypto.js"; import { getSubtle, randomBytes } from "./crypto.js";
export async function encrypt( export async function encrypt(