4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

fix base58 publicKey

This commit is contained in:
Phillip 2023-05-25 21:39:48 +03:00
parent cfe9a0c0a3
commit 430413c572

View File

@ -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)