Cryptographic primitives in DAML
App Development2 posts443 views4 likesLast activity May 2020
AN
Andreas_LochbihlerOP
May 2020What cryptographic primitives are available natively in DAML? I’ve seen that there’s Text.sha256 to compute the SHA-256 digest of a string. Are there primitives for other cryptographic operations such as signatures or symmetric / asymmetric encryption available in DAML? If not, are there any libraries for such operations available?
MA
Martin_Huschenbett
May 2020Hi Andreas,
Text.sha256 is the only cryptographic primitive provided by the DAML SDK. I’m not aware of any third-party libraries which provide such functionality either.
However, since the distributed ledgers on which DAML is running already take care of encrypting messages and collecting signatures, there might be less need for cryptographic primitives in DAML itself than you anticipate.
M.