Bayesianism is adherence to a degree-of-belief interpretation of probability rather than to a frequency interpretation.
Hagen von Eitzen's answer is correct if the prior degree of belief about $p$ is expressed by a uniform distribution.
The physicist Edwin Jaynes once argued in a paper that if one has never suspected either outcome of existing until one of them is observed, then that epistemic situation should be modeled by using
$$
\frac{dp}{p(1-p)} \tag 1
$$
as the prior distribution. That is NOT a probability distribution since it assigns infinite measure to the whole space. If you observed heads ten times, the posterior would then be
$$
\frac{p^9\,dp}{1-p},
$$
which is still not a probability distribution. At this point one is in the epistemic state of never having even suspected that the black swan --- the tails outcome --- is a possibility. But if one has tried twice and observed heads once and tails once, then one knows that both possible outcomes exist, and application of Bayes' formula to the prior $(1)$ yields the uniform distribution as the posterior.
If your epistemic state is like that --- knowing ONLY that those two outcomes are possible --- then Jaynes' argument would lead to the conclusion that the uniform distribution is the right prior.
Historically, in Thomas Bayes' famous posthumous paper that appeared in 1763, two years after his death, the uniform prior and the Beta posterior resulting from just this kind of experiment, was the only problem considered. It was in that paper that Bayes derived the result that
$$
\int_0^1 \binom n k x^k(1-x)^{n-k}\,dx = \frac{1}{n+1}
$$
by the method that I described here.