Skip to content
HUSH
Documentation

Using HUSH

Step-by-step guides, integrations and operator setup.

Getting started

  1. Install a Solana wallet such as Phantom, Solflare or Backpack, then press Connect Wallet.
  2. Open Vault and create your Vault key. Pick a strong passphrase. The encrypted backup downloads straight away; keep it somewhere safe.
  3. Shield a small amount of SOL to try it. Your protected balance appears once the indexer has seen the deposit.

Launch a token

  1. Enter a name, a ticker (1–10 letters or digits), an image up to 2 MB, and optionally a description and links.
  2. Want to be the first buyer? Set a first buy in SOL. HUSH quotes SOL → hSOL on Jupiter (0.5% slippage). If your wallet already holds enough hSOL, the swap is skipped.
  3. Review and sign. HUSH pins the image and metadata to IPFS, builds pump.fun's create_v2 with hSOL as the quote plus your buy_v2 in the same transaction, simulates it, and only then asks your wallet to sign.
  4. With Privacy Rings on, a second transaction creates the mint's SPL interface. If it fails, the coin is still live; retry from /launch?ring=<mint>.

Market cap and volume come from DexScreener. A brand-new coin shows "not indexed" rather than an estimate.

Vault

  • Top up fees. The Vault key is also a Solana signer. Send it a little SOL from your wallet so it can pay its own network fees. That transfer is public.
  • Shield moves SOL or any SPL / Token-2022 token into the ring. The first deposit of a mint also creates its ring interface, paid by the depositor.
  • Private send pays a registered Solana address. Asset and amount are hidden; sender and recipient aren't.
  • Unshield withdraws to any public address. Destination, asset and amount are public.
  • Split / merge reorganise notes. One proof can only spend a limited number of notes, so merge before sending a balance built from many small deposits.
  • Register publishes the Vault's viewing and nullifier keys so others can pay it by Solana address. Optional.

Stealth Trade

  1. Unlock the Vault, then press New trading wallet. Download a fresh backup afterwards; older ones won't contain it.
  2. Fund it from the Vault (an unshield) or straight from your wallet (a public transfer).
  3. Search a token or paste its mint, pick an amount and slippage, then swap. Quotes and routes come from Jupiter. The swap is checked to need only the trading wallet's signature, simulated, and signed in your browser.
  4. Done? Shield the proceeds back into the Vault, or send them to an address.

Sealed P2P

  1. Create an offer: what you give, what you want, an expiry and, optionally, the only wallet allowed to accept. You sign a free message to prove you own the wallet.
  2. Send the link through a private channel. The part after #k= is the decryption key; browsers never send it to servers.
  3. The counterparty accepts by signing a message. The seller then creates a durable nonce and pre-signs the two-leg transaction.
  4. The buyer presses Verify, sign & submit. HUSH rebuilds the expected transaction, compares it byte-for-byte, checks the seller's signature and that the nonce is still live, then hands it to the wallet.
  5. Afterwards the seller reclaims the nonce rent. To call off a signed offer, the seller uses Revoke, which advances the nonce on-chain.

Integrations

  • Helius Privacy Rings via @heliuslabs/spr@0.9.0-alpha in the browser. RPC, indexer and the attested prover go through HUSH's proxy, so the API key stays on the server.
  • pump.fun via @pump-fun/pump-sdk@4.3.1: create_v2 (Token-2022) with an hSOL quote, buy_v2.
  • hSOL he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A, admitted as a pump.fun quote through its QuoteControl list.
  • Jupiter Swap API v1 (quote + swap) and token search.
  • DexScreener for public market data. Pinata to pin images and metadata to IPFS.

Operators

Settings live in .env (see .env.example). The minimum for live use:

  • HELIUS_API_KEY (or RPC_URL) for RPC and Privacy Rings. Without it the Vault can still create keys but everything else shows a development state.
  • PINATA_JWT for launches.
  • OTC_SETTLEMENT_LIVE=true turns on on-chain P2P settlement. Enable it only after an end-to-end test with small amounts.