§ 06 — Privacy

Hide the deposit, not just the bid.

A commitment hides price and size, but a public deposit still bounds bid size from above. Helius Solana Privacy Rings encrypt amounts. This page summarises what is hidden, what stays public, and what is real today. The full analysis is docs/PRIVACY.md.

Ring · simulated in demoStatus probe + RPC proxyPrivate escrow · phases A–C

§ 6.1The leak

FieldWhere it livesVisible during commit?
max priceinside the keccak commitmentno
bid amountinside the commitmentno
depositpublic SPL transfer to escrow; stored as SealedBid.deposit (onchain mode)yes

Because bid_amount ≤ deposit, the deposit reveals an upper bound on size, which is enough to spot and copy whales. Refunds and holder payouts also land in public token accounts.

In custodial mode

Offchain, bids and their deposits are ledger entries, so chain observers see none of them. What they do see is your deposit into, and withdrawals out of, the company wallet: public transfers with amounts. The operator sees everything, including revealed bids, as soon as you submit them. The trust moves from the chain to the custodian.

§ 6.2What Helius Privacy Rings provide

  • The Default (confidential) Ring encrypts the amount and asset of private balances and transfers. Sender and recipient addresses stay visible.
  • Deposits into a ring (public → private) and withdrawals (private → public) publish their amounts. Only private → private transfers hide them.
  • Owners read balances locally with an X25519 viewing key. Proofs come from a Helius-hosted prover in a TEE, or a local prover.
  • Solana Privacy Program ring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANW, same id on devnet and mainnet. The Helius docs disagree on whether mainnet beta is live, so the API probes liveness at runtime.

§ 6.3Hidden vs public

Today (public deposit)Target design
Max price, bid sizehidden until revealsame
Deposit amountpublichidden (ring ciphertext)
Refunds, holder payoutspublichidden (confidential transfer)
Bidder and escrow addressespublicstill public
Aggregate escrow, clearing resultspublicpublic
Buyback drips, protocol feespublicpublic by design
After reveal, max price and bid amount are public in every design: ring privacy protects the commit window, which is when copy-trading happens.

§ 6.4Real vs simulated

GET /api/privacy/status
Off-chain · tests passingLive probe via getUserRecords, cached 60 s. Returns simulated: true in demo mode.
POST /api/privacy/rpc
Off-chain · tests passingProxies the 8 documented indexer methods; HELIUS_API_KEY never leaves the server; 32 KB body, 120 requests/min/IP.
Private deposit toggle (demo)
SimulatedA nacl.secretbox ring model funds a shielded escrow; bids are marked privately funded. No real funds.
Private deposit (devnet / mainnet)
PlannedFails closed: the escrow is a plain SPL token account and cannot receive confidential transfers. The toggle is disabled with the reason.
Shield, transfer, withdraw, decrypt
PlannedNeed @heliuslabs/spr plus a shielded keypair that wallet-adapter cannot yet derive. Behind the HeliusSprBindings seam.
Indexer proxy
POST /api/privacy/rpc
Content-Type: application/json

{ "method": "getUserRecords", "params": { "owners": ["<base58 wallet>"] } }

allowed methods:
  getEncryptedUtxosByTags
  getShieldedTransactionsByTags
  getShieldedTransactionsBySignature
  getShieldedTransactionsByNullifiers
  getMerkleProofs
  getNonInclusionProofs
  getNullifierQueueElements
  getUserRecords

§ 6.5The plan

Phase A · bucketed deposits
PlannedA new commit_bid_v2(commitment, bucket) with fixed deposit buckets (for example 100 / 1k / 10k / 100k). The deposit then leaks only a coarse bucket. No Helius dependency.
Phase B · ring-funded commits
PlannedA confidential transfer to a launch escrow-operator Shielded Address, attested off-chain and verified with an Ed25519 precompile in commit_bid_shielded; one aggregate withdrawal at settlement; confidential refunds. Custodial between commit and settle, with a time-locked public fallback.
Phase C · non-custodial
PlannedWhen Custom Rings or ring CPI allow program-controlled UTXOs: the launch PDA owns the ring account, no attestor, no custody.