toCredentialIdOrNull
Extension functions for safe parsing of credential-related identifiers.
Provides ergonomic helpers for converting strings and IRIs to typed identifier wrappers. All functions follow the toXxxOrNull() pattern for safe parsing without exceptions.
Safe parsing: Convert String to CredentialId, returns null if invalid.