build

suspend fun build(): IssuanceResult

Build and issue the credential.

Must be called at most once per IssuanceBuilder instance. When withRevocation is enabled, a status-list index is allocated as part of this call. Calling build a second time would allocate a new (orphaned) index even if the first call failed, permanently consuming capacity in the status list. Create a new IssuanceBuilder instance for each issuance attempt.

This operation performs I/O-bound work (credential issuance, status list operations) and uses the configured dispatcher. It is non-blocking and can be cancelled.

Return

Sealed result type with success or detailed failure information