Decode a hex string (with or without a 0x / 0X prefix) into a
Uint8Array. Rejects odd-length input and non-hex characters so a
malformed wire signature surfaces immediately instead of producing a
silently truncated byte array.
Parameters
hex: string
Returns Uint8Array
Throws
If the cleaned hex string is odd-length or contains
non-hex characters.
Decode a hex string (with or without a
0x/0Xprefix) into aUint8Array. Rejects odd-length input and non-hex characters so a malformed wire signature surfaces immediately instead of producing a silently truncated byte array.