[ Architecture ]
Vanquish architecture.
A technical overview of the Vanquish shielded pool: the components involved in each transaction, what each component can access, and the guarantees enforced on-chain.
TRANSACTION PATHFrom client to pool
Proofs are generated on the client and verified on‑chain. No component in the path can spend or redirect funds.
CLIENT→RELAYER→SOLANA PROGRAM→SHIELDED POOL
COMPONENTSSystem components
Client
Runs in the browser- Key derivation. Spending and viewing keys are derived deterministically from a single wallet signature. The same wallet restores the same account on any device.
- Encrypted notes. Balances are held as encrypted notes that only the owner's keys can decrypt.
- Local proving. Proofs are generated in the browser. Private inputs are never transmitted.
On‑chain program
Solana · verifiable- Proof verification. Every state change requires a valid proof, verified with Solana's native alt_bn128 syscalls.
- Double‑spend prevention. Each spent note publishes a unique nullifier. Reuse is rejected by the program.
- Admin scope. The admin can pause deposits and set the fee, capped at 1%. The admin cannot move, freeze or seize user funds, and withdrawals cannot be paused.
Relayer
Off‑chain · untrusted- Fee abstraction. Submits transactions and pays network fees on the user's behalf.
- Non‑custodial. Recipient, amount and fee are bound to the proof. Any modification invalidates the transaction.
Indexer
Off‑chain · untrusted- Event indexing. Serves the pool's public commitments and encrypted notes for fast account sync.
- Client verification. Indexed data is checked by the client against state stored on‑chain.
THREAT MODELWhat each party can observe
| PARTY | CAN OBSERVE | CANNOT OBSERVE |
|---|---|---|
| Chain observer | Deposit and withdrawal addresses and amounts | Transfers inside the pool, balances, or links between deposits and withdrawals |
| Relayer | The proof, its public inputs and the withdrawal destination | The sender, notes or keys |
| Indexer | Commitments and encrypted notes | Note contents or ownership |
| Vanquish operators | The same public data as any observer | Keys, notes or balances |
Unlinkability grows with the size of the anonymity set. Varied timing and non‑distinctive amounts make it stronger still.
FEESFee schedule
| Deposit | 0.3% of amount |
| Withdrawal | 0.3% of amount + 0.002 SOL relayer fee |
| Private transfer | 0.002 SOL relayer fee |
DEPLOYMENTCurrent status
| Network | Solana devnet |
| Program ID | 7mpR3gqKvHJz15QToJSzGZ7f8GkKozkpFvHNcwTSKzZD |
| Testing | End‑to‑end coverage of every instruction |