toArrayDisclosure

fun JsonElement.toArrayDisclosure(salt: String): JsonArray

Creates a disclosure for a JsonElement in a JsonArray as defined by SD-JWT 4.2.2.

Receiver

the JsonElement to turn into an Array Disclosures.

Return

the JsonArray representing the disclosure.

Parameters

salt

the salt to use in the disclosure.