Hashing binary data
App Development2 posts41 viewsLast activity Dec 2025
LE
Levente_BarczyOP
Aug 2025ES
eslaboncarl
Dec 2025There is currently no built-in way in Daml to hash generic raw binary data without going through Text and its UTF-8 encoding.
If you really need to hash arbitrary bytes, you’ll have to:
-
do it outside Daml (off-ledger) and bring the hash in, or
-
redesign the protocol so that the “message” being hashed is a canonical UTF-8 Text.