I am aware that in the Pedersen commitment scheme, the relationship between g and h must be unknown in terms of discrete logarithms. Knowing the relationship would be insecure as it would break the hiding property. I used the following simple "attack" to try and understand:
- c = g^m * h*r
- The attacker knows g = h^x, so the commitment c is simplified to c = h^xm+r
- Knowing c and x, the attacker can start guessing values for m and r
However, randomly picking m and r and checking if they fit the commitment to find the right m seems to have a probability that is going to be very (negligibly) low. It is pretty much a brute-force attack but can't figure out why knowing the relationship between g and h must be unknown in terms of discrete logarithms if the danger is negligible.
This question doesn't go into detail on this topic Pedersen commitment so I wanted more detail on it.