Skip to content
CCPEDIAby Unity Nodes
App Development

How to compute the keccak_256 hash for text?

2 posts253 viewsLast activity Jan 2023

  1. Kaizhao_ShiOP

    We need to compute the keccak_256 hash for text, but only find TEXT fuction sha256.

  2. cocreature

    sha256 is the only hash function provided in Daml and you cannot easily implement your own hash functions. I recommend to compute the hash off ledger and pass it in when you’re creating the contract or as a choice argument.