I'm new to Monero and I'm trying to get to grips on transactions compared to BTC.
What I'm trying to understand is - what prevents a transaction using a completely random string for 'x' within I = xHp(P) when generating the TXO key image?
Is the key image generated with the spending TXOs private key, and that key is then passed into the ring signature function, which will sign the transaction assuming one of the public keys given, was used to generate the key image?
Any guidance in helping me understand the mechanism intuitively would be much appreciated.