Skip to content

Commit d92459a

Browse files
committed
not including meta field in hash for signed topics
1 parent 4964a79 commit d92459a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

waku/factory/validator_signed.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ proc msgHash*(pubSubTopic: string, msg: WakuMessage): array[32, byte] =
3434
ctx.update(msg.payload)
3535
ctx.update(msg.contentTopic.toBytes())
3636
ctx.update(msg.timestamp.uint64.toBytes(Endianness.littleEndian))
37-
ctx.update(msg.meta)
37+
# ctx.update(msg.meta) meta is not included in the message hash, as the signature goes in the meta field
3838
ctx.update(
3939
if msg.ephemeral:
4040
@[1.byte]

0 commit comments

Comments
 (0)