If I use Tink in Canton, how do I specify which cryptographic algorithm is used?

If I use Tink in Canton, how do I specify which cryptographic algorithm is used?

You can customize the crypto configurations of a node using the CryptoConfig:

https://www.canton.io/docs/dev/scaladoc/com/digitalasset/canton/config/CryptoConfig.html

This is more the setting where you define the capabilities and libraries of a node. However, which crypto methods are used on a domain is defined through domain parameters:

https://www.canton.io/docs/dev/scaladoc/com/digitalasset/canton/domain/config/DomainParametersConfig.html

Generally, a participant can only connect to a domain if it supports all the crypto schemes the domain requires.

However, we strive for safe defaults and therefore recommend you to not touch these config options.

1 Like