Key material
When a user signsSETUP_MESSAGE, the SDK derives:
| Key | Role |
|---|---|
| Viewing key | Prefilter announcements (view tags) and scan owned outputs |
| Spending key | Reconstruct one-time private keys to sweep funds |
Meta-address
A 66-byte value (viewing pubkey ‖ spending pubkey) registered onStealthMetaAddressRegistry. Share it so senders can derive one-time destinations without linking payments to your public identity.
Send flow
- Resolve recipient meta-address (registry lookup or direct hex)
prepareStealthSend(meta)derives an ephemeral keypair + one-time stealth address- Transfer native asset to the stealth address
announceonStealthAddressAnnouncerso the recipient can scan
sendStealthPayment for a single high-level call. To weaken timing analysis,
delay the announcement or interleave decoy announcements; see
Anonymity utilities.
Receive flow
- Indexer or adapter fetches
Announceevents - WASM view-tag prefilter + DKSAP ownership check (
filterOwnedAnnouncements) - Reconstruct signing key (
getStealthSignerPrivateKey) - Sweep to a fresh address (
sweep)