• Converts a hex string to a Uint8Array.

    Parameters

    • input: string

      The hex string to be converted to a Uint8Array. If the string starts with '0x', it will be removed before conversion.

    Returns Uint8Array

    The Uint8Array representation of the hex string.