function bytesToHexString(bytes) {
  let hex = "",
    len = bytes.byteLength
  for (let i = 0; i < len; i++) {
    hex += BYTE_TO_HEX[bytes[i]]
  }
  return hex
}
Converts a Uint8Array into the equivalent hexadecimal string.