# Can 2 bit commitment protocols be secure when sent together with the same bit

Suppose I have 2 bit commitment schemes, C1 and C2 which are computationally hiding.Suppose I commit the same bit using both and send them to an adversary who knows that the same bit was committed. Is the scheme still computationally hiding, or are there counterexamples?

Suppose we have an oracle $$\theta( C_1^x, C_2^y )$$ that would take a commitment in C1 to the bit $$x$$ and a commitment in C2 to the bit $$y$$, and if those two commitments were to the same bit ($$x=y$$), it would output that common value; if they were to different bits, then the behavior is unspecified.
Then, suppose we were given a commitment $$C_1^b$$ in scheme C1 to a bit $$b$$. When we could do is generate two commitments in C2, namely $$C_2^0$$ and $$C_2^1$$, and evaluate both $$\theta(C_1^b, C_2^0)$$ and $$\theta(C_1^b, C_2^1)$$. Now, if $$b=0$$, we know that $$\theta(C_1^b, C_2^0)$$ must evaluate to zero (by the definition of the oracle); and so if the behavior of $$\theta(C_1^b, C_2^1)$$ was anything other than evaluating to one with high probability, we would be able to deduce that $$b=0$$. Similarly, if $$b=1$$, then we see that $$\theta(C_1^b, C_2^0)$$ must evaluate to zero with high probability.
Hence, for C1 to be hiding, we must have $$\theta(C_1^b, C_2^x) = x$$ almost all the time.