register

abstract suspend fun register(context: Context = ContextProvider.context, attestation: Attestation): Result<KeyPair>

Registers a new key pair for device binding with optional attestation.

Return

A Result containing the generated KeyPair on success, or an error on failure

Parameters

context

The Android context for cryptographic operations

attestation

The attestation type to include in the key registration