mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 02:05:51 +00:00
fix base58 publicKey
This commit is contained in:
parent
cfe9a0c0a3
commit
430413c572
@ -104,11 +104,12 @@ export const encryptData = ({ data64, recipientPublicKey }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const encryptDataGroup = ({ data64, publicKeys }) => {
|
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
|
let combinedPublicKeys = publicKeys
|
||||||
if (userPublicKey) {
|
if (userPublicKey) {
|
||||||
combinedPublicKeys = [...publicKeys, userPublicKey]
|
combinedPublicKeys = [...publicKeys, userPublicKey]
|
||||||
}
|
}
|
||||||
|
|
||||||
const publicKeysDuplicateFree = [...new Set(combinedPublicKeys)];
|
const publicKeysDuplicateFree = [...new Set(combinedPublicKeys)];
|
||||||
const Uint8ArrayData = base64ToUint8Array(data64)
|
const Uint8ArrayData = base64ToUint8Array(data64)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user