static String toHexString(byteArray, bool withPrefix) { return ((withPrefix ? '0x' : '') + HEX.encode(toBuffer(byteArray))); }