Response

@Serializable
data class Response(val response: ByteArray, val linkable: Boolean = false)(source)

The answer to hand back to the platform.

Constructors

Link copied to clipboard
constructor(response: ByteArray, linkable: Boolean = false)

Properties

Link copied to clipboard

Whether the copy presented had been seen by another Verifier.

Link copied to clipboard
@Serializable(with = Base64Serializer::class)
val response: ByteArray

The CBOR EncryptedResponse, to hand back to the platform.

Functions

Link copied to clipboard

The response as the data member of a platform's Digital Credentials API response, for a platform that takes the whole object (ISO/IEC TS 18013-7 Annex C): {"response": base64url(EncryptedResponse)}, as JSON. iOS takes response itself; on Android, DigitalCredentials.response wraps it.