encodeHex

fun ByteArray.encodeHex(prefixOx: Boolean = false): String

Converts a byte array to a hex string.

Return

Hex string representation of the byte array.

Parameters

prefixOx

Whether to prefix the hex string with 0x.