Converts a hexadecimal string to a Uint8Array.
If the input string is not a valid hex string.
The hexadecimal string to convert.
The binary data as a Uint8Array.
Converts a hexadecimal string to a Uint8Array.
Throws
If the input string is not a valid hex string.