digestOf

fun digestOf(metadata: Metadata, data: Data): ByteArray

Generates a canonicalized digest of the message/resource for signing or verification.

Return

The message digest as a byte array.


fun digestOf(payload: Any): ByteArray

Generates a canonicalized digest of any payload.

Return

The digest as a byte array.