Skip to content

Commit

Permalink
chore: print WakuMessageHash as hex strings
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Aug 13, 2024
1 parent 2cc86c5 commit 9ab55c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions waku/waku_core/message/digest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import ../topics, ./message

type WakuMessageHash* = array[32, byte]

func `$`*(hash: WakuMessageHash): string =
return hash.to0xHex()

const EmptyWakuMessageHash*: WakuMessageHash = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0,
Expand Down

0 comments on commit 9ab55c0

Please sign in to comment.