Chameleon
Start
OverviewHow it worksQuickstart
Concepts
ConceptsPrivacy model
Reference
The transactionsJavaScript engineAddresses and programs
Practice
Real examplesSelling and exitingSecurity and limitsFAQChangelog
Solana mainnet

How it works

One buy, start to finish.

1. You make keys once

You create a spending key s and a viewing key v, both ed25519 scalars. Their public halves S = s x G and V = v x G make up your meta-address. The meta-address is public and safe to share. It is never used as an address on chain.

2. The page derives a one-time address

For each buy the page draws a fresh random key r and publishes R = r x G. It computes the shared point r x V, hashes it with SHA-512 into a scalar h, and takes the first byte of that hash as the view tag. The one-time address is the public key P = S + h x G.

You, holding v, can compute the same point as v x R. Nobody else can: it needs r or v.

3. You fund it

The one-time address is brand new and holds no SOL, so it cannot pay for anything. The page shows how much to send (the buy, about 0.003 SOL of account rent and fees). You send it from a wallet app, like any transfer. This is the one visible link, and the privacy model is honest about it.

4. It buys, and announces itself

Once the SOL arrives, the page builds one transaction and signs it with the one-time key. The transaction does five things:

  1. Sets the compute budget. This instruction also lists the Chameleon marker address, a read-only account nobody owns, so every Chameleon transaction can be found with one call.
  2. Writes the announcement as a memo: cham1 <R> <view tag>.
  3. Creates the token account for the one-time address.
  4. Opens the pump.fun volume account, which pump.fun requires for new wallets.
  5. Calls pump.fun buy_exact_sol_in.

pump.fun sees a new address buy. That is all it ever sees.

5. You find it later

The scanner asks the node for every transaction that lists the marker, reads each memo, and for each one multiplies R by your viewing key. If the first byte of the hash differs from the view tag it stops: that is about 255 out of every 256 foreign announcements. If it matches, it derives P, checks it equals the transaction's signer, and computes the private scalar p = s + h that controls it.

6. You exit

To sell, the page signs a pump.fun sell from the one-time address. To keep the tokens, it signs a transfer to a wallet you name. To recover leftover SOL, it signs a transfer back. The one-time key never leaves the page, and a wallet app cannot import it, because it is a raw scalar rather than a seed. See selling and exiting.

Why there is no program

On Ethereum chains the pump-style curve lets a buyer name a different recipient, so a router contract can buy on someone's behalf. On Solana the pump.fun program gives the tokens to whoever signs. So the signer is the one-time address, and the one-time address pays for itself. That removes the need for any contract.