(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