(hex: string): Uint8Array<ArrayBufferLike> | null Decodes a hex string to a Uint8Array.
Whitespace is stripped before parsing. Returns null for invalid hex.
hex
Hex string to decode (case-insensitive, whitespace allowed).
type
stringreturns
Uint8Array<ArrayBufferLike> | null Decoded bytes, or null if the input is not valid hex.