Standalone

### Stealth Addresses

Part I

# Stealth Addresses

Download quests in Questplay

Private token transfers where the identity of the sender or receiver is kept anonymous can be implemented in several ways. Among them, the use of stealth addresses offers an especially lightweight solution.

Instead of transferring directly to the receiver, the sender transfers the token to a cryptographically computed address (i.e. a stealth address). Through mathematical magic, only the receiver can compute the private key to the stealth address, and effectively has ownership of the token. There is also no way of any third party of tracing the stealth address back to the receiver's original address.

Let us take a deeper dive into the Improved Stealth Address Protocol (ISAP), an implementation of stealth addresses using elliptic curves. Given that a sender wishes to anonymously transfer a token to a receiver with public/private key pair $(P,p)$:

Sender chooses a secret value.

Sender computes and publishes some "published data".

$publishedData=G\ast secret$Sender computes a shared secret.

$sharedSecret=P\ast s$Sender derives a new public key from the shared secret

$stealthPublicKey=P+G\ast hash\left(sharedSecret\right)$Sender sends the token to the address corresponding to $stealthPublicKey$. This address is the stealth address.

G is the generator point of the chosen elliptic curve.

Now, given the publicly available $publishedSecret$ and their own private key $p$, the receiver can compute the private key that corresponds to $stealthPublicKey$.

Given the published data, the receiver computes the $sharedSecret$.

$sharedSecret=publishedData\ast p$The receiver computes the private key to the stealth address.

$stealthPrivateKey=p+hash\left(sharedSecret\right)$

How is this process an anonymous transfer? Let us make two observations:

The receiver has effective ownership of the token

Only the receiver has private key $p$, and can compute $stealthPrivateKey$. Effectively, only they own the stealth address and the transferred token.

The receiver is anonymous

Thanks to public key cryptography, only the sender and recipient know sharedSecret. Hence, only these two parties can trace the connection between the recipient's public key and the newly generated public key.

In other words, to everyone else, the token has been transferred to a random address. Third parties have no way of knowing that the token has been effectively transferred to the receiver.

## Your Task

Read and understand the concept of stealth addresses detailed above.

The ownership of a Cursed Grimoire is considered taboo. Owners of these books wish to hide from the eyes of the public ...