toHexString

fun ByteArray.toHexString(prefixOx: Boolean = false, format: HexFormat = HexFormat.UpperCase): HexString

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.

format

The format of the hex string.