toClaimDigestElement

suspend fun JsonArray.toClaimDigestElement(digestAlgorithm: Algorithm): JsonPrimitive

Creates the appropriate JSON Primitive for a Digest being inserted into a JSON Object.

Receiver

the JsonArray representing the array disclosure.

Return

the JsonPrimitive to add as the digest for a property.

Parameters

digestAlgorithm

the digest algorithm to use.