From the Wikipedia page for DSA(Digital Signature Algorithm) we have the following private/public key generation:
- Choose an integer x randomly from [1, q-1]
- Compute y := g^x mod p
- x is the private key, y is the public key
My question is: How are we sure that there does not exist z != x from [1, q-1], such that y = g^x mod p = g^z mod p and as a result, obtaining the same public key for different (z and x) private keys