• The function returns Uint8 representation of a string

    Parameters

    • stringToConvert: string

      string which has to be converted to Uint8Array

    Returns Uint8Array

    the desired Uint8Array representation of the string