• Validates the format of a hex string via regex.

    Parameters

    • input: unknown

      Hex string to validate for correct format.

    • Optional bitLength: number

      Expected length of hex in bits.

    Returns void