diff --git a/packages/status-js/src/utils/payload-to-id.ts b/packages/status-js/src/utils/payload-to-id.ts index 2b2181f..5486d3c 100644 --- a/packages/status-js/src/utils/payload-to-id.ts +++ b/packages/status-js/src/utils/payload-to-id.ts @@ -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}`