So I went on and analyzed @pumpfun's wallet migration process, by reading the actual JavaScript the site serves.
tldr: calling this "end-to-end encryption" is misleading at best. End-to-end encryption means only you can decrypt. Here the encryption does happen in your browser, but the decryption key belongs to Privy: their infrastructure (a TEE) decrypts your private key, keeps it, and signs with it for whoever passes their login check.
What actually happens when you click "Import and finish":
1. Your key is checked locally and must match the wallet you're connected with.
2. The page asks pumpfun's server for an encryption key, and pumpfun's server relays back what is supposed to be Privy's public key.
3. Your key is encrypted in the browser (HPKE) and sent through pumpfun's server to Privy.
4. Privy decrypts it and keeps it. From then on, Privy signs with your key whenever a valid Privy session asks.
The problems:
- It's not E2E. The "other end" is the custodian, not you. By that logic, any HTTPS upload is "end-to-end".
- The encryption key is handed out by pumpfun's own backend, and your browser has no way to check that it's really Privy's. In real E2E, the relay can't choose who the recipient is.
- Your funds now also depend on Privy never getting breached. Every migration like this one piles more private keys into one place, which makes it a prime target for hackers. TEEs (secure hardware enclaves) raise the bar, but they've been broken before, and insiders and bad updates are risks too. Your key in Phantom was one target among millions. At Privy it sits in one giant vault.
- Privy and pumpfun gets to decide if you keep access to your wallet. Got some funds sent to you from a source that they decide is suspicious, or they just don't like you? You can get banned and lose access to your wallet, or they can decide to move your assets based on a court order. Sure you can export the private key you create on pumpfun. Did you?
- Google/Apple/Github also gets to decide if you keep access to your wallet. Ever read stories about people losing access to a lifetime of emails because Google decided they don't deserve access anymore? Now you also get to lose your wallet. Once again, you can export the private key you create on pumpfun. Did you?
- Your key now exists in two places: Your local wallet and Privy. Deleting your pumpfun account doesn't take it back. The site's own text says Privy "still holds the key" for wallets from deleted accounts.
- The key field is a plain textarea on pumpfun's page, not an isolated iframe like Stripe's card field. Every script on the page (Google Tag Manager, analytics, etc.) can read it. The site's CSP allows unsafe-inline scripts, all of unpkg and jsdelivr, Facebook, TikTok and more. I found no code reading the key today, but nothing technically prevents it.
- Your wallet's security goes from "who holds the key" to "who can log in to Privy", which is a much lower bar and not suitable for holding any kind of (serious) amount of assets.
And the most important:
- None of this is necessary. The flow already makes you sign a "Sign in with Solana" message, which proves you own the wallet and signing each transaction you do is your choice for security. Hardware wallets and multisig users can't import at all and just lose their account. A signature-based migration would have worked for everyone.
On top of that, teaching millions of users "paste your private key into this box before the deadline" builds exactly the habit scammers exploit.
Never share your private key with anyone. Your private keys is private, that's literally in the name. Let privy create a new key (and don't keep assets there) or just stop using pumpfun if they keep requiring your keys to be held with them.
https://t.co/mHNP90oCM9
Gona be some nutty anti ai campaigns in the future. Everything will be more efficient but you will have no job or purpose. Meanwhile thereβs gona be a cohort of trillionaires telling you itβs for the best.
JUST IN: Anthropic CEO Dario Amodei reportedly suggested immersive video games could pacify the masses left jobless by AI, preventing widespread political unrest. β WSJ