createPasskey
suspend fun createPasskey(activity: Activity, userId: ByteArray, userName: String, prfSalt: ByteArray? = null, prfSaltSecond: ByteArray? = null): PasskeyRegistrationResult
Creates a new passkey (registration ceremony).
Triggers the system passkey creation flow — the user sees a biometric prompt from Google Password Manager. On success, returns the P-256 public key and credential ID needed for authentication and DID derivation.
Return
PasskeyRegistrationResult with public key and credential ID
Parameters
activity
Activity context — required for the CredentialManager system UI
userId
Unique user identifier (opaque bytes, not PII). Used by the authenticator to associate the credential with the user.
userName
Display name for the passkey (shown in password manager UI)
Throws
on failure