Let me look at this problem from a probabilistic point of view. If $X$ is uniformly distributed on $[0,\,1]$, and $a_i$ is the $i$th (random) digit in the binary expansion of $X$, then $R_i(X)$ are independent Rademacher r.v.'s with equally probable values $\pm 1$.
Then $f_k(X)=\sum_{i=1}^k \frac{1}{2i}R_i(X)$ is a sum of independent random variables.
We introduce random environment with the single goal: to express the required integral in more simple form.
The probability density function of $X$ is $1_{[0,\,1]}$:
$$
f(x)=\begin{cases}1, & x\in[0,1]\cr 0 & x\not\in[0,1].\end{cases}
$$
Remind that for r.v. $X$ with PDF $f(x)$ the expectation of any measurable function $g(X)$ is equal to
$$Eg(X)=\int_{\mathbb R}g(x)f(x)\,dx.$$ Therefore
$$Ee^{tfk(X)}=\int_{\mathbb R}e^{tfk(x)}f(x)\,dx = \int_0^1 e^{tfk(x)}\,dx.
$$
This is the initial integral. So, we need to calculate
$$\int_{[0,1]} e^{t f_k(x)} dx = Ee^{t f_k(X)}=Ee^{t\cdot \sum_{i=1}^k \frac{1}{2i}R_i(X)}=E\prod_{i=1}^k e^{\frac{t}{2i}R_i(X)}.$$
Independence of $R_i(X)$ over different $i$ implies
$$
E\prod_{i=1}^k e^{\frac{t}{2i}R_i(X)} = \prod_{i=1}^k Ee^{\frac{t}{2i}R_i(X)}=\prod_{i=1}^k\left(\dfrac12 e^{\frac{t}{2i}}+\dfrac12 e^{-\frac{t}{2i}}\right)=\prod_{i=1}^k \cosh\left(\frac{t}{2i}\right).
$$
Note that the last step we did by definition of expectation of discrete r.v.: for any function $h$
$$Eh(R_i)=h(1)\cdot P(R_i=1)+h(-1)\cdot P(R_i=-1)=\frac12 h(1)+\frac12 h(-1).$$
For $h(y)=e^{\frac{ty}{2i}}$
$$Ee^{\frac{tR_i}{2i}}=e^{\frac{t\cdot 1}{2i}}\cdot P\left(R_i=1\right)+e^{\frac{t\cdot (-1)}{2i}}\cdot P\left(R_i=-1\right)=\frac12 e^{\frac{t}{2i}} +\frac12 e^{-\frac{t}{2i}}.$$