SecureQRGenerator

class SecureQRGenerator(renderer: SecureQRRenderer = SecureQRRenderer())

Constructors

Link copied to clipboard
constructor(renderer: SecureQRRenderer = SecureQRRenderer())

Types

Link copied to clipboard
data class Result(val payload: String, val frames: Frames)

Functions

Link copied to clipboard
suspend fun generateMdocPayload(issuerSigned: ByteArray, docType: String, validFrom: Long, validTo: Long, excludedElementIdentifiers: Set<String> = emptySet(), dropByteStringClaims: Boolean = false, deviceSign: suspend (ByteArray) -> ByteArray): ByteArray

Builds the SignedQR transport payload for presenting a held mdoc credential: the issued issuerSigned (optionally with some claims omitted) plus a fresh device signature over the signed-QR SessionTranscript. Frame it for display with SecureQRRenderer.encodeMdocFrames — mirroring how the SD-JWT path returns one payload the renderer frames. The assembled frames verify with com.dewa.walletsdk.secureqr.altid.AltIdQrVerifier.

Link copied to clipboard
fun generateSecureFramesV2(sdjwtPresentation: String, targetBytesPerQR: Int = 400): SecureQRGenerator.Result

V2 transport (JSON{vc1,vc2,vc3} + zlib + b64url), then generate QR frames.