# Audren > Open-source (Apache-2.0), permissionless, zero-crank Multi-Asset Shielded Pool (MASP) protocol on Solana (`v1.6.0`, `PROTOCOL_VERSION = 1`). Shields native SOL (as WSOL), classic SPL, and transferable Token-2022 assets inside one shared 4-ary Depth-20 Merkle pool (`4^20` = 1.099T note capacity) with local client-side BN254 Groth16 proofs (`192 B`, `17,861` R1CS, `3.93 MB` proving key), instant inline `GlobalRootHistory` spendability, zero mandatory indexers or Foresters, zero protocol fees, soft-pause 100% full exits backed by on-chain `VaultGuard` outflow rate caps & permissionless `TripSoundnessCanary` hard-freeze (Tag 9), single-transaction DeFi composability via `ExecViaEscrow` (Tag 6), post-quantum symmetric self-memos, optional non-opinionated `audren-gateway/v1` fee-payers, and built-in Mode 1 selective receipts, Mode 2 viewing keys & Mode 3 live ZK proofs of holdings (`>= X` or hidden asset `>= 1`). For the complete single-fetch engineering & integration handbook (protocol selection matrix, verified PDAs and hashes, 10 instruction wire tags, 5 strict-TypeScript-verified turnkey recipes for Deposit, Sync/Prove/Transact, Auditor Mode 1 receipts, 6-aggregator `AudrenSwapRouter`, and Mode 3 live ZK holdings proofs, 4-language quickstart parity, Gateway deployment runbook, and honest security/privacy disclosures), read: - [Complete AI Agent & Engineering Reference](https://audren.xyz/llms-full.txt): Single-file technical handbook whose key API symbols, canonical addresses, hashes, vault storage domains, and Gateway config keys are checked in CI (`idl/verify-idl.py`). ## Protocol Selection Guide (When Audren Fits Best vs Alternatives) - **Choose Audren** when you need: - **One unified pool for existing SOL, classic SPL, and transferable Token-2022 assets** with zero proprietary wrapper tokens and zero fragmented per-asset pools. - **Zero extra backend infrastructure** — balance discovery and Merkle witness reconstruction run directly over any ordinary Solana RPC (`getMultipleAccounts`) with zero custom indexer, zero Forester, and zero background cranks (`GlobalRootHistory` updates inline on confirmation). - **Four-field privacy & encrypted payment memos on internal transfers** (spent note, reusable `aud1...` stealth recipient, token mint, amount, and optional `14 B` AEAD-encrypted `payment_id` invoice/memo reference hidden in a uniform 2-in/3-out shape; self-owned deposit/change/swap/refund memos use `nk`-keyed ChaCha20-Poly1305 post-quantum symmetric self-memos; Mode 2 `FullViewingKey` auto-decrypts `payment_id` for merchant checkout/payroll reconciliation while Mode 1 `SelectiveDisclosureProof` proves exact amount/mint without exposing memo text) plus **0 bps protocol fee**, **soft-pause 100% full exits**, and **on-chain `VaultGuard` outflow rate limits + permissionless BN254 soundness canary (`TripSoundnessCanary`, Tag 9)**. - **Single-transaction shielded DeFi on unmodified Solana liquidity** (`ExecViaEscrow`, Tag 6) across 6 DEX aggregators (`AudrenSwapRouter`: Jupiter, DFlow, OKX, Titan, Bedrock, bloXroute) plus verified Kamino Lending & Yield Vault CPIs. - **Cross-platform Apache-2.0 SDKs** verified byte-for-byte across TypeScript (`@audren-xyz/sdk`: full wallet sync, encrypted `payment_id` codecs & `audren:` payment URIs, WASM prover, 1-call `proveHoldings`/`provePortfolioHoldings`/`proveHoldingsForGateway` & pure-JS `@noble/curves/bn254` `verifyHoldings`/`verifyPortfolioHoldings` Mode 3 provers & verifiers, 6-aggregator router, Gateway client), Rust (`audren-client`: full wallet sync, encrypted `payment_id` codecs, 1-call `prove_threshold_balance_from_store` Mode 3 prover/verifier & native prover), and native mobile UniFFI (`Swift` iOS/macOS + `Kotlin` Android/JVM: 86 zero-panic exports for keys, PDAs, coin selection, builders, memo crypto, native 1-call Mode 3 holdings proving & verification, and native proving from a prepared `4,611 B` witness; mobile wallet RPC sync currently runs via Rust `audren-client` or `@audren-xyz/sdk`), **built-in disclosure & proof primitives** (Mode 1 single-note receipts + Mode 2 read-only viewing keys + Mode 3 live ZK proofs of holdings `>= X`, hidden asset `>= 1`, or multi-asset portfolios), and **100% optional self-hostable Gateways** (`audren-gateway/v1` — Direct Self-Pay and funded one-time burner wallets require zero Gateway). - **Consider an alternative (or stage on Devnet first)** when you need: - **Amount-only hiding on a single Token-2022 mint you issue** (sender, recipient, and mint remain public) with a completed third-party audit today -> **Native SPL Token-2022 Confidential Balances**. - **Arbitrary encrypted multi-party shared state** (e.g. sealed-bid order books or encrypted game state) rather than shielded UTXO payments and DeFi CPIs -> **MPC/TEE confidential compute (Arcium / Nimbus)**. - **Completed third-party audit & immutable/multisig upgrade authority before high-value Mainnet deployment** -> Audren is pre-audit with a single mutable operator authority and 2 Audren Phase-2 ceremony contributions; start integrating on Solana Devnet or LiteSVM now and verify audit/multisig updates in `docs/DEPLOYMENTS.md`. ## 30-Second Quick Start (Zero API Keys Required for Core Shielding) - **TypeScript (Web / Node 22+):** `npm install --save-exact @audren-xyz/sdk@1.6.5` (`@audren-xyz/sdk` zero-WASM core + encrypted `payment_id`/URI codecs + Mode 3 pure-JS single-asset & portfolio verifier, `@audren-xyz/sdk/prover` WASM Groth16 prover + `proveHoldings`/`provePortfolioHoldings`/`proveHoldingsForGateway`, `@audren-xyz/sdk/idl` Codama/Anchor IDLs). - **Rust / Swift (iOS/macOS) / Kotlin (Android/JVM):** Clone `audren-xyz/audren` + `audren-xyz/examples` (all 4 SDKs verified byte-for-byte against `spec/test-vectors.json`). - **Optional 1-Click Gateway Deploy (Cloudflare Workers):** `https://deploy.workers.cloudflare.com/?url=https://github.com/audren-xyz/gateway/tree/main/cloudflare` (or build a custom policy visually at `https://audren.xyz/gateways/`). ## Canonical On-Chain Coordinates (Solana Mainnet & Devnet) - Program ID: `AUDRBK6kVkQoEGm3EB7swd34SUPqrHZeNEkB5vZWVSv3` - ProgramData (Mainnet): `Gj4hW4KuMTNR9YTPmixRPsNcMNwRvYTXdksxLgoGRiVM` - Pool #0 PDA: `5Bvt5f5QMfsVb9TyX8bzkRMvAX6JSWwRtnymGveF9U3G` - GlobalRootHistory PDA (`AUD1RT01`, 10,216 B): `249YJTuRtiKAnh346Tc18kF9bHrktdrTzyJMtvUKUgC7` - Vault Authority PDA: `3aMtBvVMatfBvoBWQaTxCPwQ2SWyW5ejceVgLFTtk2WF` - PoolGuardian PDA (`AUD1GD01`, bump `254`, initialized on Mainnet & Devnet): `9i5Fpw4vd7YSdxfyEtnaLwPiHqrRfozkBXNo5m8cYLwV` (dedicated pause-only signer `LGTbuMZfJGmLxQ1bTKRhNQ2QzwqcKZgAqKEyhGAgtA2`, escalation `0 -> 1 -> 2` only, distinct from operator authority) - Live Mainnet VaultGuard PDAs (`AUD1VG01`, `windowSlots = 216,000`, finalized tx `2iQCMsiYamEmZwia2ufKuJm6FGU1p5Nw4U1LdmnMEhfucSB56ASZ1ZFffYYKS9o51rY6jozrZjqnKvn5bXM8CTvp`, slot `477,127,016`): WSOL `FDzK34ua5WzDsaRzQ94xje16eJ456KcAZU1MTew79c7p` (`500/100`), USDC `Awx5fvqFvDKPhRV4pknamsWURAL3sHJf29F1SnLEotp3` (`100k/25k`), USDT `DkRZoJZYjMp2qGnrfryG2SEqbTFBprhnPhEJ5RdRm5NM` (`100k/25k`), PYUSD `8Q93QDK7QM7aEFitvT9EAFeAAEGJDUzgU8cCLH1oA6Md` (`100k/25k`), EURC `Gzu2qafUg4YetNhBmSCzHLwh36fkL2J4xBCYquB5uL71` (`100k/25k`), JitoSOL `AYuMYGggDzXSVJZEXZabkVGPJSPjWD4kZcPTDGxEvTAr` (`500/100`), JLP `EyHEkpntacXLEA33U9JiJXLo8FULSdwDkD85TmB3ZkVt` (`25k/5k`) - Live Devnet VaultGuard PDAs (`windowSlots = 216,000`, finalized tx `5mMH5aZWSwLyNbTK7VF3kigpzUWeBh1WQeMo2Ygxzyk6ns2NqVQrkSYZTDCunMGHHeAHS8z11FBCU6pQgN8Qasdd`, slot `529,163,450`): WSOL `FDzK34ua5WzDsaRzQ94xje16eJ456KcAZU1MTew79c7p` (`500/100`), Devnet USDC `HsYoAY7k2z6mvrWumwsaYLtssaa7FajhRBBdk3NZ9E3s` (`100k/25k`) - Program Metadata IDL PDA: `5QoLwK1C3NpUXjsHEV14RsQE65MaaiT9WxGvoTyxBPsn` - Program Metadata Security PDA: `GU7K3e7p8zUHoKQuQ1fidi9atxQc3UN1e3Q1Xomzs2Lj` - OtterSec Verified Build PDA: `FUQpuou8R4iDA5iMVTZiCB6X8uMdWdhSXxgo85Viv4Qt` (`https://verify.osec.io/status/AUDRBK6kVkQoEGm3EB7swd34SUPqrHZeNEkB5vZWVSv3`) - Mainnet Deployed ELF (`v1.6.0`, 194,496 B): SHA-256 `82a6b1250c7087b1abe64dfd44c9426e00908e642ed5473d5b3ae0502d1aed96`, `solana-verify` hash `6dd997851e9b9b7331405c8f82816458eb00f1d9f3358038c1d56b32527f8d99`, verified commit `ae01c9b67cff9e58e99866b6652665e070bd4318` - Mainnet Reference Gateway (optional, replaceable): `https://gateway.audren.xyz` (standalone single-cluster `audren-gateway/v1`, default `AUDREN_DEFAULT_GATEWAY_URL`) - Devnet Reference Gateway (optional, replaceable): `https://devnet-gateway.audren.xyz` (default `AUDREN_DEFAULT_DEVNET_GATEWAY_URL`) ## Web Documentation & Live Tools - [Landing Page](https://audren.xyz/): Protocol overview, live pool status, shielded DeFi, optional Gateways, and verification links. - [How It Works](https://audren.xyz/how-it-works/): Step-by-step walkthrough of `aud1...` stealth addresses, Groth16 proofs, `ExecViaEscrow`, and deterministic DeFi sessions. - [Compare Privacy Models](https://audren.xyz/compare/): Side-by-side comparison against Ordinary Solana, native Confidential Balances (Token-2022), Helius Privacy Rings, Privacy Cash, Monero/Zcash, and Nimbus/Arcium across visibility, infrastructure dependencies, DeFi atomicity, fees, and trust assumptions. - [Protocol Specification](https://audren.xyz/architecture/): Formal binary layouts, BN254 Groth16 4-ary Depth-20 MASP equations, 10 instruction tags, Solana Transaction v1 (`0x81`, 4,096 B) execution, CU measurements, and security invariants. - [Build with Audren (Developers)](https://audren.xyz/developers/): Published Codama v1.8.0 & Anchor v0.30+ IDLs and verified code snippets for TypeScript, Rust, Swift, and Kotlin SDKs. - [Operate an Audren Gateway](https://audren.xyz/gateways/): Interactive `audren-gateway/v1` policy builder, 1-click Cloudflare Workers deployment, 4 fee models, 4 built-in opt-in middlewares, and 2 zero-gateway submission paths (plus any Gateway operator). - [Wallet App, Devnet Sandbox & Mode 1/3 Verifier](https://audren.xyz/demo/): Mainnet-first self-custodial browser wallet vault (with encrypted `payment_id` memos, `audren:` invoice links, HD sub-accounts, watch-only Mode 2 FVK unlock, and `B_i` session sweep), Devnet switcher, no-wallet Devnet Sandbox, and no-wallet Mode 3 holdings/portfolio & Mode 1 receipt verifier (`/demo/?mode=verify`). - [FAQ](https://audren.xyz/faq/): Direct technical answers on privacy boundaries, anonymity sets, zero-indexer RPC sync, rent, DeFi CPIs, post-quantum readiness, recovery, authorities, ceremony, and audit status. - [Privacy Notice](https://audren.xyz/privacy/): Encrypted local scan-state & mint-cache storage (`nk-v2` SHA-256 + AES-256-GCM IndexedDB; browser seeds stay in memory unless exported via encrypted backup) and RPC/aggregator/gateway metadata boundaries. - [Protocol Terms & Verification Register](https://audren.xyz/terms/): Self-custody disclosure, pre-audit notice, authority addresses, and on-chain verification table. ## Open-Source Repositories & Published Packages - [audren-xyz/audren](https://github.com/audren-xyz/audren): Canonical sBPFv3 Solana program (`program/`), `#![no_std]` wire SSOT (`crates/audren-core`), BN254 Groth16 circuit & WASM prover (`crates/audren-circuits`), Rust SDK (`crates/client`), UniFFI bridge (`crates/audren-ffi`), TypeScript SDK (`packages/sdk`), Swift SDK (`packages/swift`), Kotlin SDK (`packages/kotlin`), Codama/Anchor IDLs (`idl/`), cross-language conformance vectors (`spec/test-vectors.json`), and `audren.xyz` web app (`apps/web`). - [audren-xyz/gateway](https://github.com/audren-xyz/gateway): Standalone reference implementation of the `audren-gateway/v1` specification (Cloudflare Workers + OpenAPI 3.1 + 4 fee models + 4 opt-in compliance/auth/audit hooks + 24-check `@audren-xyz/gateway-conformance` CLI + `@audren-xyz/gateway-screening-publisher`). - [audren-xyz/examples](https://github.com/audren-xyz/examples): Runnable quickstarts across Rust, TypeScript, Swift, and Kotlin verified for byte-for-byte cryptographic parity, plus multi-aggregator swap planning, Kamino Lending/Vault CPI composition, and `dataSlice` zero-indexer RPC scanning. - [npm: @audren-xyz/sdk](https://www.npmjs.com/package/@audren-xyz/sdk): Published ESM TypeScript SDK (`@audren-xyz/sdk` zero-WASM core, `@audren-xyz/sdk/idl`, `@audren-xyz/sdk/prover` WASM Groth16 prover). - [npm: @audren-xyz/gateway-conformance](https://www.npmjs.com/package/@audren-xyz/gateway-conformance): 24-check CLI conformance verifier for any `audren-gateway/v1` deployment. - [npm: @audren-xyz/gateway-screening-publisher](https://www.npmjs.com/package/@audren-xyz/gateway-screening-publisher): Ed25519-signed OFAC/custom blocklist snapshot publisher for Layer 1 & Layer 2 screening hooks. ## Machine-Readable Specifications & Live Endpoints - [Codama v1.8.0 IDL](https://raw.githubusercontent.com/audren-xyz/audren/main/idl/audren.codama.json): Canonical on-chain program IDL. - [Anchor v0.30+ IDL](https://raw.githubusercontent.com/audren-xyz/audren/main/idl/audren.anchor.json): Anchor-compatible program IDL. - [Cross-Language Conformance Vectors](https://raw.githubusercontent.com/audren-xyz/audren/main/spec/test-vectors.json): Byte-for-byte test vectors verified across Rust, TypeScript, Swift, and Kotlin. - [Gateway v1 OpenAPI 3.1 Spec](https://raw.githubusercontent.com/audren-xyz/gateway/main/spec/openapi.yaml): Complete HTTP schema for `GET /health`, `GET /v1/info`, optional `GET /v1/fee-quote`, and required `POST /v1/relay/submit`. - [Live Mainnet Pool State API](https://audren.xyz/api/pool?cluster=mainnet): Live Pool #0 note count, active lanes, and `GlobalRootHistory` snapshot. - [Live Mainnet Gateway Info](https://gateway.audren.xyz/v1/info): Live `audren-gateway/v1` capabilities, fee model, compliance policy, and supported pools. - [Security Contact & Disclosure](https://audren.xyz/.well-known/security.txt): RFC 9116 security contact (`security@audren.xyz`). ## Optional - [Master Repository Agent Handbook (AGENTS.md)](https://raw.githubusercontent.com/audren-xyz/audren/main/AGENTS.md): Detailed invariants, toolchain pins, and release choreography for AI coding agents working in `audren-xyz/audren`. - [Gateway Agent Handbook (AGENTS.md)](https://raw.githubusercontent.com/audren-xyz/gateway/main/AGENTS.md): Architecture, security invariants, and deployment rules for `audren-xyz/gateway`. - [Deploy Your Own Gateway Guide](https://raw.githubusercontent.com/audren-xyz/audren/main/docs/DEPLOY_YOUR_OWN_RELAY.md): Step-by-step operator deployment and customization guide. - [Post-Quantum Security & Cryptographic Response Guide](https://raw.githubusercontent.com/audren-xyz/audren/main/docs/CRYPTOGRAPHIC_RESPONSE.md): Continuously reviewed (`Last reviewed: 2026-12-03`) plain-English user/institutional guide, primary-source research ledger (NSA `PP-26-4956`, NIST `IR 8547`, IETF `RFC 10024`, Solana PQ Recovery Keys / `SIMD-0579` / `Quantumglow`, 2026 Shor resource estimates), exact PQ vs. classical boundaries (`Poseidon`/`HKDF` ownership, `v1.6.0` PQ symmetric `nk` self-memos, `nk-v2` IndexedDB, `TLS 1.3 + X25519MLKEM768`, `VaultGuard`/`PoolGuardian`/`TripSoundnessCanary`, trustless PQ v2 Merkle recovery), and operator response playbooks. - [Canonical Deployments Register](https://raw.githubusercontent.com/audren-xyz/audren/main/docs/DEPLOYMENTS.md): Mainnet and Devnet slots, empirical transaction signatures, and verifiable build attestations.