algorithm

fun algorithm(name: String)

Set key algorithm by string name (e.g., "Ed25519", "secp256k1").

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.