Function hexToUint8Array

Converts a hexadecimal string to a Uint8Array.

If the input string is not a valid hex string.

  • Parameters

    • hexString: string

      The hexadecimal string to convert.

    Returns Uint8Array

    The binary data as a Uint8Array.