Download Best Wallet
Download your #1 Monero wallet
Cryptography

How do stealth addresses work mathematically?

Stealth addresses provide Monero's privacy by ensuring that every payment is sent to a unique, one-time destination that cannot be linked to the recipient's main address.

Quick Answer

A stealth address is derived by the sender using the recipient's public view and spend keys combined with a fresh transaction secret. This process creates a one-time output public key. The recipient uses their private view key to recognize the output via shared secret derivation, but claiming the funds requires the recipient's private spend key. This conceptual Diffie-Hellman exchange and hashing ensures that no public address appears directly on the blockchain, protecting the user's transaction history.

Conceptual Derivation

When sending funds, the sender computes a one-time destination address. This is performed mathematically through a combination of the sender's transaction secret and the recipient's public keys. This ensures that even though the recipient publishes a single address, every transaction is sent to a distinct, unlinkable address.

Because this derivation involves a Diffie-Hellman exchange, only the intended recipient possesses the private view key required to identify that a specific output belongs to them among the total set of transactions on the network.

Spending the Output

Recognizing an output with the view key is only the first step. To actually spend those funds, the recipient must generate the corresponding one-time private spend key. This calculation relies on the recipient's actual private spend key.

View keys alone are strictly for monitoring balances and incoming payments; they lack the authority to authorize spending. This separation of view and spend authority maintains the integrity of the recipient's privacy.

Sources

Related reading

Key takeaways

  • Stealth addresses ensure every transaction uses a unique, unlinkable destination.
  • Sender combines recipient public keys with a transaction secret.
  • Recipient uses their private view key to identify payments.
  • The private spend key is required to actually claim or spend the output.