From 430413c572e1f820c7bb88332a73983d46de6647 Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 25 May 2023 21:39:48 +0300 Subject: [PATCH] fix base58 publicKey --- plugins/plugins/core/components/qdn-action-encryption.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugins/core/components/qdn-action-encryption.js b/plugins/plugins/core/components/qdn-action-encryption.js index eeaa37f6..cd990395 100644 --- a/plugins/plugins/core/components/qdn-action-encryption.js +++ b/plugins/plugins/core/components/qdn-action-encryption.js @@ -104,11 +104,12 @@ export const encryptData = ({ data64, recipientPublicKey }) => { } export const encryptDataGroup = ({ data64, publicKeys }) => { - const userPublicKey = window.parent.Base58.decode(window.parent.reduxStore.getState().app.selectedAddress.keyPair.publicKey) + const userPublicKey = window.parent.reduxStore.getState().app.selectedAddress.base58PublicKey let combinedPublicKeys = publicKeys if (userPublicKey) { combinedPublicKeys = [...publicKeys, userPublicKey] } + const publicKeysDuplicateFree = [...new Set(combinedPublicKeys)]; const Uint8ArrayData = base64ToUint8Array(data64)