Key handling
| Where | What is stored |
|---|---|
| Browser memory | The PQ secret key, only while the vault console is unlocked. Wiped on lock, on leaving the page, and after 10 minutes of inactivity. |
| Your backup file | The secret key encrypted with AES-256-GCM under a scrypt-derived key (N = 2¹⁷, r = 8, p = 1). Format, scheme, public-key hash, vault address and program ID are bound as authenticated data. |
| IndexedDB (optional) | The same encrypted backup, only if you choose to keep it on the device. Never the plaintext key. |
| QDay servers, database, logs | Nothing. No endpoint accepts a secret key, and no request body, URL, log line or analytics event contains one. |
Keys are generated with the Web Crypto random source via @noble/post-quantum. They are never derived from a wallet signature. Before continuing, the vault flow makes you decrypt your downloaded backup and checks that it yields the same key.
QDay never asks for a seed phrase or a wallet private key.
Authorization
Moving vault funds requires a post-quantum signature verified by the Vector program on-chain. The signed digest commits to every instruction in the transaction (program, accounts, destination, amount), the vault's current nonce, the vault address, and an expiry slot, with the domain prefix "vector:". The program advances the nonce on success, so each signature works once.
Before your key signs, the browser checks the withdrawal against a policy (positive amount, destination is not the vault, fee payer is not the vault, finite expiry) and then re-verifies the result offline against the same digest the program will compute. If that check fails, nothing is sent.
There is no admin withdrawal, no wallet-signature recovery path and no backdoor. A compromised wallet can pay fees, but cannot authorize a withdrawal.
What the server can do
The QDay server builds and simulates launch transactions, stores token metadata, and records chain events after verifying them itself. The database is not an authorization authority:
- Row-level security is enabled on every table. The web role cannot write verified state; only the verifier role can, and only after finalized chain reads.
- Wallet sign-in uses single-use, five-minute challenges bound to this domain. Sessions are random tokens stored as peppered HMACs in
__Host-cookies. - The browser holds only a publishable storage key; uploads succeed only for a path the server registered seconds earlier, and stored objects cannot be overwritten or deleted.
- No privileged key, service-role key or keypair is ever sent to the browser.
Transaction checks
Every launch transaction must match a fixed program sequence (Compute Budget + Pump create_v2, or Pump create_v2 + Associated Token + Pump buy), with exactly two signers (you and a fresh mint key) and a dev buy capped at exactly your amount. The server checks this when building and again before sending, and requires the signed message to hash to exactly what it built. Your browser decodes and checks the same bytes before your wallet is asked to sign. Program IDs are pinned in source.
Web security
- Per-request nonce Content Security Policy with
strict-dynamic; no third-party scripts on any page, including signing pages. frame-ancestors 'none', HSTS,nosniff, strict referrer policy, and no-store on API responses.- Same-origin checks on every state-changing request, strict JSON schemas, size limits and rate limits.
- Uploaded images are identified by their bytes, rebuilt from pixels to strip metadata, and served from random paths. SVG and HTML are rejected.
Audit status
Neither QDay nor the Vector program has an independent security audit that QDay can verify. QDay's cryptography comes from pinned, widely used open-source libraries (@noble/post-quantum, @noble/hashes, Web Crypto); QDay implements no cryptographic primitives itself. Vector's TypeScript SDK is vendored at a pinned commit and tested against the program's own Rust reference vectors.
Disclosure
If you find a vulnerability, please report it privately to the QDay team directly. Please do not test against other users' funds or accounts. See also Risks.