mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
added ui user public key
This commit is contained in:
parent
adc8ba42a0
commit
cfe9a0c0a3
@ -104,7 +104,12 @@ export const encryptData = ({ data64, recipientPublicKey }) => {
|
||||
}
|
||||
|
||||
export const encryptDataGroup = ({ data64, publicKeys }) => {
|
||||
const publicKeysDuplicateFree = [...new Set(publicKeys)];
|
||||
const userPublicKey = window.parent.Base58.decode(window.parent.reduxStore.getState().app.selectedAddress.keyPair.publicKey)
|
||||
let combinedPublicKeys = publicKeys
|
||||
if (userPublicKey) {
|
||||
combinedPublicKeys = [...publicKeys, userPublicKey]
|
||||
}
|
||||
const publicKeysDuplicateFree = [...new Set(combinedPublicKeys)];
|
||||
const Uint8ArrayData = base64ToUint8Array(data64)
|
||||
|
||||
if (!(Uint8ArrayData instanceof Uint8Array)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user