createBatch

suspend fun createBatch(numberOfCredentials: Int, document: Document, domain: String, secureArea: SecureArea, docType: String, createKeySettings: CreateKeySettings): Pair<List<KeyBoundMdocCredential>, String?>

Creates a batch of KeyBoundMdocCredential instances with keys created in a single batch operation.

Return

A pair containing:

  • A list of created KeyBoundMdocCredential instances, ready to be certified

  • An optional string containing the compact serialization of a JWS with OpenID4VCI key attestation data if supported by the secure area.

Parameters

numberOfCredentials

The number of credentials to create in the batch.

document

The document to add the credentials to.

domain

The domain for all credentials in the batch.

secureArea

The secure area to use for creating keys.

docType

The docType for all credentials in the batch.

createKeySettings

The settings to use for key creation, including algorithm parameters.