fromHexStr
fromHexStr(
hex):Uint8Array
Defined in: ootle/src/helpers/hex.ts:18
Decodes a hex string into bytes.
Strict: rejects odd-length input and any character outside [0-9a-fA-F].
Returns an empty Uint8Array for an empty input.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”if hex has odd length or contains non-hex characters.