Cryptographic primitives in DAML

What 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?

2 Likes

Hi 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.

2 Likes