mirror of
https://github.com/status-im/status-web.git
synced 2025-01-10 12:46:14 +00:00
fix: creation of message ID
This commit is contained in:
parent
5c45a4f005
commit
08becf1b77
@ -5,7 +5,7 @@ export function payloadToId(
|
||||
payload: Uint8Array,
|
||||
publicKey: Uint8Array
|
||||
): string {
|
||||
const hash = keccak256(concatBytes(payload, publicKey))
|
||||
const hash = keccak256(concatBytes(publicKey, payload)) // order matters
|
||||
const hex = bytesToHex(hash)
|
||||
|
||||
return `0x${hex}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user