Decodes a hexadecimal string into bytes.
Returns Result.error for invalid input (odd length or non-hex characters).
| hex |
hexadecimal text. |
|
Result.ok(decoded bytes), or Result.error(HexError.INVALID_ARGUMENT/PARSE) on invalid input. |