What is a key image in Monero?
The key image is a critical component of Monero’s protocol, serving as a signature that links transaction inputs to their spending status.
Quick Answer
A key image is a one-way cryptographic value generated for every transaction input. Because it is mathematically derived from the specific output being spent, the key image acts as a unique identifier. This allows the network to identify if a particular output has been spent without revealing the original sender's public identity.
Preventing Reuse
The primary purpose of the key image is to enable double-spend detection. Since each output has a unique corresponding key image, any attempt to use the same output again will result in the same key image being presented. The network can detect this duplication immediately.
Maintaining Anonymity
Despite being a unique identifier, the key image does not reveal the specific public key used to create it. This contributes to Monero's privacy model, keeping the sender anonymous while providing the network with the data needed for chain integrity.
Sources
Related reading
Key takeaways
- Key images are unique to specific transaction inputs.
- They enable efficient detection of double-spent funds.
- They preserve sender privacy during network verification.
