toClaimDisclosure

fun JsonElement.toClaimDisclosure(claimName: String, salt: String): JsonArray

Creates a disclosure for a JsonElement Object Property as defined by SD-JWT 4.2.1.

Receiver

the JsonElement to turn into a Claim Disclosure.

Return

the JsonArray representing the disclosure.

Parameters

claimName

the name of the claim.

salt

the salt to use in the disclosure.