certifyCredential

fun certifyCredential(documentSlot: Int, credentialData: ByteArray, encryptedPresentationData: ByteArray): ByteArray

Certifies the credential with the given encryptedPresentationData and returns the updated encryptedPresentationData.

Note: this operation will not alter the state of the applet, ie. would not result in the newly certified credential being set as the active credential. In order to use the certified credential, setActiveCredential must still be called.

The |credentialData| parameter must be CBOR conforming to the following CDDL:

CredentialData = { "issuerNameSpaces": IssuerNameSpaces, "issuerAuth" : IssuerAuth, "readerAccess" : ReaderAccess }

IssuerNameSpaces = { NameSpace => + IssuerSignedItemBytes }

ReaderAccess = * COSE_Key

Return

updated encryptedPresentationData

Parameters

documentSlot

the slot to certify a credential in

credentialData

the data being used to certify the credential

encryptedPresentationData

the data representing the provisioned, uncertified credential