Skip to content

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.

string

Uint8Array

if hex has odd length or contains non-hex characters.