createSdJwtDocument

abstract suspend fun createSdJwtDocument(vct: String, settings: WalletCreateDocumentSettings = WalletCreateDocumentSettings()): UnsignedDocumentHandle

Creates a new unsigned SD-JWT VC document, ready to be issued to.

This method:

  • generates new PoP (Proof-of-Possession) keys inside Android Keystore,

  • stores a placeholder document entry in the wallet database,

  • returns an UnsignedDocumentHandle containing: • PoP public key • key alias • id for later storage

The resulting unsigned document must later be passed to storeIssuedDocument along with the issuer-returned SD-JWT VC string.

Return

An UnsignedDocumentHandle describing the newly created placeholder.

Parameters

vct

The credential type (VCT), e.g. "dk.e-boks.AgeCredential.1".

settings

Configuration for key creation and Android Keystore authentication policy (user authentication required, StrongBox use, etc.)