From 92ab5de2822158a3b22222082146932af52b84f4 Mon Sep 17 00:00:00 2001 From: Phillip Date: Sat, 29 Apr 2023 20:38:10 +0300 Subject: [PATCH] add missing import --- qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js index 812109be..7111f819 100644 --- a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js @@ -22,7 +22,7 @@ import { publishData } from '../../../utils/publish-image.js'; import { Loader } from '../../../utils/loader.js'; import { QORT_DECIMALS } from 'qortal-ui-crypto/api/constants'; import nacl from '../../../../../qortal-ui-crypto/api/deps/nacl-fast.js' -import ed2curve from '../../../../../qortal-ui-crypto/api/deps/nacl-fast.js' +import ed2curve from '../../../../../qortal-ui-crypto/api/deps/ed2curve.js' const parentEpml = new Epml({ type: 'WINDOW', source: window.parent }); class WebBrowser extends LitElement { @@ -597,7 +597,7 @@ class WebBrowser extends LitElement { const sharedSecret = new Uint8Array(32) nacl.lowlevel.crypto_scalarmult(sharedSecret, convertedPrivateKey, convertedPublicKey) - const chatEncryptionSeed = new Sha256().process(sharedSecret).finish().result + const chatEncryptionSeed = new window.parent.Sha256().process(sharedSecret).finish().result const nonce = new Uint8Array(24); window.crypto.getRandomValues(nonce); @@ -660,7 +660,7 @@ class WebBrowser extends LitElement { const sharedSecret = new Uint8Array(32); nacl.lowlevel.crypto_scalarmult(sharedSecret, convertedPrivateKey, convertedPublicKey) - const _chatEncryptionSeed = new Sha256().process(sharedSecret).finish().result + const _chatEncryptionSeed = new window.parent.Sha256().process(sharedSecret).finish().result const _decryptedData = nacl.secretbox.open(_encryptedData, nonce, _chatEncryptionSeed) let data = {};