• Returns Uint8Array with data decoded from hex string.

    Throws error if hex string length is not divisible by 2 or has non-hex characters.

    Parameters

    • hex: string

    Returns Uint8Array