• Converts the input to a hex string.

    Parameters

    • input: string | number | Uint8Array

      The input to be converted to a hex string. This can be a string, number, Uint8Array, or a hex string.

    Returns HexString

    The hex string representation of the input.

    Throws an error if the input type is not string, number, Uint8Array, or hex string.