fix: creation of message ID
This commit is contained in:
parent
8dbe361c86
commit
f22d744732
|
@ -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…
Reference in New Issue