# Parsing

## Parsing Announcements

This process is executed by the recipient to identify which transactions are intended for them.

### Steps

1. **Scan for Announcement Events**
   * Each stealth transaction emits a tuple `(E, StealthAddr, viewTag)`.
2. **Compute Shared Secret**
   * Multiply your viewing private key `v` by the ephemeral public key `E` to get `P' = v × E`.
   * Hash `P'` to derive `h'`.
   * Extract the candidate view tag from `h'`.
3. **Compare View Tags**
   * If the candidate tag does not match the announcement’s `viewTag`, ignore the transaction.
4. **Derive Stealth Address**
   * Compute `R' = S + (h' × G)` using the known spending public key `S`.
   * Verify that `PubKey(R')` matches the announced `StealthAddr`. A match confirms that the transaction is for you.
