algorithm

fun algorithm(algorithm: String)

Set key algorithm for new key by string name.

For type safety, prefer using algorithm(value: DidCreationOptions.KeyAlgorithm).


Set key algorithm using type-safe enum.

This is the preferred method for compile-time type safety.