Protocol · v1
How Blackout works
A specification of the defences behind every launch. Everything below is implemented in src/lib/sec (shared by the browser and the server) and src/signer (the isolated signer), and the browser-side checks run identically on this page's verifier.
Overview
Blackout is a pump.fun launchpad designed under assume breach, the zero-trust principle that you design as if the attacker is already inside. We assume the website server is, or will be, compromised. The design goal: a compromised website can't take a lamport from a user or a fee vault, and can't do anything quietly.
It's split into two services. The website builds transactions and serves pages; it holds no real keys. The isolated signer holds every fee vault key, sealed, and will sign only what its policy allows. Your browser checks every transaction before your wallet sees it.
+----------------------+ +----------------------+ +----------------------+
| YOUR BROWSER | intent | WEBSITE | hmac | ISOLATED SIGNER |
| | -------> | (assume pwned) | -------> | |
| firewall: | | | | vault keys: |
| decode raw bytes | <------- | builds tx bytes | <------- | sealed aes-gcm |
| program allowlist | tx bytes | key share B only | addr + | master = 2 of 3 |
| sha-256 memo | | 0 real keys | ed25519 | policy + simulate |
| simulate --+ | | ### bait keys ### | | canary watcher <----+-- bait moved?
| | | | | | audit hash chain | => LOCKDOWN
+--------------|-------+ +----------------------+ +----------+-----------+
| |
v independent rpc daily warrant v
=============================================== SOLANA ==============================================
launch memo = sha256(statement) . fee split 70/30 . warrant canary . breach alarm
Threat model
Adversaries we design for, all seen in the wild this year: a breached web server (code, env, database, disk), a leaked backup, a tampered transaction shown to a signer, an intruder who wants to stay quiet, and an operator under pressure to rewrite history.
| If this happens | What the attacker gets | Because |
|---|---|---|
| Website server fully breached | No user funds, no fee vault | Firewall blocks tampered transactions; vault keys are on the signer; share B alone opens nothing |
| Attacker uses a key found on the website | Detected in ~15s | Every key there is a honeytoken; signer locks down, alarm posted on-chain |
| Database or backup leaked | Ciphertext | Vault keys sealed with AES-256-GCM under keys derived from M; M needs 2 of 3 shares |
| Website swaps the fee vault in a launch | Nothing | Vault must carry the signer's Ed25519 attestation; firewall decodes the fee split |
| Website asks the signer to sign something else | A refusal, logged | The link only exposes 4 actions; every signature passes policy + simulation |
| Someone edits the signer's audit log | A broken chain | Hash chain re-verified at boot (lockdown if broken) and by anyone; head anchored on-chain daily |
| The signer itself is breached | The vault keys | See limits. That's why it's small, separate and reachable only over the HMAC link |
Primitives
| Primitive | Used for | Standard |
|---|---|---|
| SHA-256 | Statement, image, audit chain, commitments, build manifest | FIPS 180-4 |
| HMAC-SHA256 | Website ↔ signer link, with timestamp + nonce | RFC 2104 |
| HKDF-SHA256 | Per-vault sealing keys and the signer identity, from M | RFC 5869 |
| AES-256-GCM | Sealing vault keys (address as AAD); Zero-Day seals | NIST SP 800-38D |
| Ed25519 | Vault attestations, warrant, every Solana signature | RFC 8032 |
| Shamir secret sharing | Splitting M 2-of-3 over GF(2⁸) | Shamir 1979 |
01 · Transaction firewall
Every transaction our website builds for you is described by an intent: what you asked for, in your browser's words, e.g. {kind:"buy", mint, maxSol: 0.5}. The firewall checks the transaction's raw bytes against it:
- Decode:
VersionedTransaction.deserializeon the exact bytes your wallet would sign. - Payer: account 0 is your wallet.
- Programs: each top-level program is on the intent's allowlist. Launch: pump.fun, pump.fun fees, Associated Token, Compute Budget. Vault funding: System transfer + Memo. Trade: pump.fun, PumpSwap, Jupiter, Associated Token, Compute Budget.
- Danger scan: no System instruction (except the exact vault funding transfer), no SPL
Approve,SetAuthority,Transfer, orCloseAccountto anyone else. - Launch only: signer attestation on the vault; facts equal your form; image hash computed from your file;
create_v2decoded (name, symbol, creator = you);update_fee_sharesdecoded (vault 7000 bps, buyback 3000 bps). - Vault funding: exactly the stated SOL to the attested vault, and the memo equals
blackout:v1:launch:‖SHA-256(statement). - Simulation:
simulateTransactionon an independent RPC, straight from your browser. Loss of SOL must be ≤ what you asked to spend + overhead (launch 0.06, trade 0.012, vault funding 0.0005 SOL).
Any failure and the modal has no sign button. You can watch it catch real attacks on the red-team drill.
Launch statement
Everything about a coin that must never change, as fixed bytes:
BLACKOUT launch statement v1 mint: <…BLK> creator: <your wallet> name: <name> symbol: <TICKER> image-sha256: <sha256 of the image file> fee-vault: <vault> (70%) buyback-wallet: <wallet> (30%) mode: burn | airdrop zero-day: <commitment> | none
memo = "blackout:v1:launch:" ‖ hex(SHA-256(statement))
The memo is an SPL Memo instruction in the vault-funding transaction, which the creator signs in the same wallet approval as the launch (with a dev buy, the launch itself has no room left under Solana's 1,232-byte limit). So the approval that creates the coin commits to its image, fee vault and split. After that nothing can be swapped without the hash on-chain disagreeing.
02 · Isolated signer
A separate service (npm run signer) that holds every fee vault key and runs the fee engine. The website reaches it only over an authenticated link and can ask for exactly four things:
/link/vault | make a fee vault for a mint; returns the address and an Ed25519 attestation, never a key |
/link/register | run a coin, only after the signer checks on-chain that pump.fun's split is exactly 70/30 to its own vault |
/link/unlock | end a lockdown, only with the offline share C |
/link/run | run the engine / warrant now |
sig = HMAC-SHA256(LINK_SECRET, "blackout/link/v1" ‖ method ‖ path ‖ ts ‖ nonce ‖ SHA-256(body)) accept iff |now − ts| < 60s ∧ nonce unseen ∧ sig matches (constant-time)
Sealed vault keys
k_v = HKDF-SHA256(M, salt = "blackout/vault/v1", info = vault address) sealed = iv ‖ tag ‖ AES-256-GCM(k_v, iv, secret key, aad = vault address)
Each vault has its own key, and the address is authenticated data, so a sealed key can't be swapped onto another row. Keys are written (journal first, then database) before the address ever leaves the signer.
Vault attestation
id = Ed25519 keypair from seed HKDF-SHA256(M, "blackout/vault/v1", "blackout/warrant/v1") attest = Ed25519.sign(id, "blackout:v1:vault:" ‖ mint ‖ ":" ‖ vault)
The identity's public key is pinned into the website build (NEXT_PUBLIC_SIGNER_KEY), so your browser rejects any vault the signer didn't make.
Master key: Shamir 2-of-3
The master key M (32 random bytes) never exists on disk anywhere. npm run setup generates it, splits it, and forgets it:
for each byte b of M: f_b(x) = b + a₁·x over GF(2⁸), a₁ random
share_i = ( i, f_0(i) ‖ f_1(i) ‖ … ‖ f_31(i) ) i = 1, 2, 3
any two shares: M_b = Σ y_i · Π_{j≠i} x_j / (x_j ⊕ x_i) (Lagrange at 0)| Share A | signer env (SIGNER_SHARE) |
| Share B | website env (WEB_SHARE), fetched by the signer over the HMAC link at boot |
| Share C | offline with the operator (BLACKOUT-RECOVERY.txt): exports and lockdown unlocks |
One share is information-theoretically useless: every possible M is equally consistent with it. M is checked against MASTER_FINGERPRINT = SHA-256("blackout/master/v1" ‖ M) at boot.
Signing policy
Every signature passes one gate (src/signer/guard.ts): refuse during lockdown → resolve all address lookup tables → enforce the policy on the real instructions → simulate and cap the vault's SOL loss → sign → append to the audit chain. A refusal is logged too.
| Purpose | Allowed | SOL cap |
|---|---|---|
| claim | pump.fun / PumpSwap / fees programs, ATA | 0.0002 |
| buy | pump.fun, PumpSwap, Jupiter, ATA; SOL only into its own wSOL account | declared + 0.003 |
| burn | BurnChecked of the coin's own mint, by the vault | 0.0002 |
| airdrop | TransferChecked of the coin's own mint (airdrop coins only) | 0.0002 |
| warrant | SPL Memo | fee only |
03 · Canary wallets
The website holds no real keys, so any key on it is bait. npm run setup creates funded honeytoken wallets and puts their private keys in the website's environment under tempting names (HOT_WALLET_PRIVATE_KEY, TREASURY_PRIVATE_KEY, DEPLOYER_PRIVATE_KEY); the website also writes them to its data volume as wallet files. The signer only knows their public addresses and polls them every 15s.
if balance < baseline:
lockdown ← { reason, canary, sig } # signer refuses everything, drops decrypted keys
audit("canary.tripped"), audit("lockdown")
post memo "blackout:v1:breach:<canary>:<sig>" # public, timestampedOnly share C ends a lockdown. After one, plant fresh bait: npm run setup -- --rotate-canaries.
04 · Audit chain
h_n = SHA-256("blackout/audit/v1" ‖ n ‖ t ‖ kind ‖ canonical(data) ‖ h_{n−1}), h_{−1} = 0²⁵⁶Every vault created, coin registered or rejected, signature made or refused, canary armed or tripped, warrant posted and rejected link request. canonical() is JSON with sorted keys. The signer re-verifies the whole chain at boot and locks down if it's broken. Anyone can download and re-hash it on /status or /verify.
Warrant canary & build hash
daily memo, signed by the signer identity:
blackout:v1:warrant:<YYYY-MM-DD>:seq=<n>:head=<h_n>:build=<B>:canaries=<alive>/<total>
B = SHA-256( join("\n", sha256(file) ‖ " " ‖ path for every file in _next/static, sorted) )The warrant pins the audit chain's head (history before it can't be rewritten without contradicting Solana) and the exact website build the signer vouches for. Your browser can re-hash the build it's running and compare. During a lockdown the warrant stops on purpose; if it's over 26h old, assume breach.
Zero-Day launches
k ← random(32), iv ← random(12) # in your browser
c = AES-256-GCM(k, iv, {name, symbol, description, image})
commitment = SHA-256(iv ‖ c) # published, with a 60s countdown
at disclosure: server decrypts with k, every field must match the launch, commitment goes into the statementResponsible disclosure, as a launch: the details are embargoed and provably fixed until the countdown ends. The ciphertext and key are kept with the coin, so its page re-opens the seal in your browser.
Fees
pump.fun locks each coin's creator fees in the launch transaction: 70% to the coin's own fee vault, 30% to the $BLACKOUT buyback wallet. Every 10 minutes the signer claims, buys the coin back, and burns it or airdrops it to holders with 100K+ tokens, depending on the mode picked at launch. Every one of those transactions goes through the policy gate and the audit chain.
Security analysis & limits
Being honest about the edges is part of the design:
- Code delivery. Your browser runs JavaScript served by our website. A breached server could serve a modified firewall. The build hash makes that detectable (it won't match the warrant), not impossible. Check it on /verify, or run the open-source build yourself.
- Signer compromise. If the signer host itself is fully breached while running, M is in its memory and the vault keys are exposed. It's kept small, separate, with no public write surface, and the canaries aren't on it. That's mitigation, not a guarantee.
- RPC trust. The firewall and verifier trust the independent RPC to simulate and report honestly. You can point
NEXT_PUBLIC_FIREWALL_RPCat your own node. - Canaries detect, they don't prevent. A careful intruder might never touch them. They catch the common case: someone who copies the secrets and uses them.
- Operator. Share C is with the operator; whoever holds two shares can open the vault keys. That's what makes exports and recovery possible.
Parameters
| Hash | SHA-256 |
| Link | HMAC-SHA256, 60s window, single-use 128-bit nonce |
| Master key | 256-bit, Shamir 2-of-3 over GF(2⁸) |
| Vault sealing | HKDF-SHA256 → AES-256-GCM, 96-bit IV, AAD = address |
| Identity / attestations | Ed25519 (RFC 8032), seed from HKDF(M) |
| Canary poll | 15 s |
| Warrant | daily, stale after 26 h |
| Zero-Day seal | AES-256-GCM, 60 s embargo |
| Fee split | 70% vault / 30% buyback, locked by pump.fun |
| Engine | every 10 min |
| Mint suffix | …BLK |
Verify it yourself
Every coin page has a Verify in my browser button, and /verify checks the audit chain, the build and the warrant. The equivalent in code:
import { statementHash, launchMemo } from "@/lib/sec/statement";
import { verifyChain } from "@/lib/sec/chain";
const coin = await fetch(`/api/coins/${mint}`).then((r) => r.json());
statementHash(coin.facts) === coin.statementHash; // the statement
const tx = await connection.getTransaction(coin.statementSig, { maxSupportedTransactionVersion: 0 });
memosOf(tx).includes(launchMemo(coin.facts)); // signed with the launch
const { entries } = await fetch("/api/audit?from=0&limit=500").then((r) => r.json());
verifyChain(entries).ok; // history intact