makeMdocSignedQrPayload

suspend fun makeMdocSignedQrPayload(cred: PresentationCredential, docType: String, issuedAt: Long, validitySeconds: Int = 180, dropByteStringClaims: Boolean = true, excludedElementIdentifiers: Set<String> = emptySet()): String

Builds the mdoc SignedQR transport payload for presenting a held credential. Presents cred's issued IssuerSigned (optionally with some claims omitted) and device-signs the signed-QR SessionTranscript with cred's key.

Returns a single Base64URL string (like makeV2TransportPayload for SD-JWT); frame it for display with SecureQRRenderer.encodeMdocFrames.

Parameters

cred

the pinned credential (its key signs, and its IssuerSigned is presented).

docType

the mdoc docType (e.g. IssuedDocumentHandle.docType).

dropByteStringClaims

omit byte-string claims (portraits/biometrics) that bloat the payload into many frames. Omission is safe — retained claims still verify.