canonicalizeToBytes

fun canonicalizeToBytes(element: JsonElement): ByteArray

UTF-8 bytes of canonicalize; this is what RFC 8785 hashes and signs.