Starknet MainnetAI Strategistx402 Payments

Re{defining} Privacy

Privacy protocols force you to choose: hide everything or expose everything. Veil re{defines} that choice. First Association Set Privacy Pool on Starknet — deployed on mainnet with real money.

ZK proofs verified on-chainAI-powered strategyx402 micropayments

First Association Set Privacy Pool

on Starknet

Implementing the Privacy Pools model (Buterin, Soleimani et al.) with STARK-native proofs. Compliant privacy that separates honest users from illicit funds.

01Deposit
USDC enters shielded pool
02Merkle Tree
Commitment added to Association Set
03ZK Proof
Prove inclusion without revealing deposit
04Withdrawal
Compliant exit via inclusion proof
Based on Buterin et al. Privacy Pools research

strkBTC-Ready Architecture

Day 1 Compatible

Built independently before strkBTC was announced. Our architecture already implements the features strkBTC promises for compliant shielded BTC on Starknet.

Shielded/Unshielded dual modesZK-private withdrawals + transparent ragequit
Viewing keys for selective disclosureAudit-ready without compromising other users
STARK-native ZK proofs (no trusted setup)Noir + Garaga — quantum-secure verification
Bitcoin settlement integrationIntent-based escrow with solver network
Built before strkBTC was announced.Ready for Day 1 integration.
Intelligence

AI Strategy Agent

Tell the AI what you want — "$50 max privacy" — and it plans optimal deposits across tiers, timing, and pool conditions. Five strategy modes from stealth DCA to whale distribution.

Monetization

x402 Micropayments

Premium pool analytics, per-tier risk scoring, and BTC projections — gated behind HTTP 402 micropayments. Pay $0.01 USDC per analysis, settled on Starknet via AVNU paymaster.

Cryptography

ZK Privacy Layer

Noir circuits generate proofs in-browser. Garaga verifies on-chain. Pedersen commitments for Merkle membership, Poseidon BN254 for ZK withdrawals. Secrets never leave your device.

x402: Pay-Per-Insight Privacy Analytics

The first privacy protocol with native micropayment-gated AI intelligence. No subscriptions, no accounts — just HTTP 402.

01RequestGET /api/agent/premium-strategy
02402 ResponsePayment requirements returned
03Pay & Settle$0.01 USDC via AVNU paymaster
04Premium IntelRisk scores, timing, projections
A+
Pool Health Score
5 levels
Per-Tier Risk
Live
BTC Projections
Real-time
Optimal Timing

AI Strategy Engine

Natural Language

Tell the AI how you want to accumulate BTC. It analyzes live pool conditions, anonymity sets, BTC price, and timing — then generates an optimal strategy. One-click execution via connected wallet.

Privacy-First
Max anonymity set
Stealth DCA
Time-decorrelated
Whale Split
Large amount splitting
Efficiency
Least deposits
Balanced
Best of all
Natural Language Examples
"$50 max privacy""DCA $200 over 5 deposits""Spread $500 across all tiers""Quick $10 anonymous deposit"
Protocol Flow

From Strategy to Confidential BTC Exit

01

Plan

AI analyzes pools, timing, and privacy scores to generate your optimal strategy.

02

Shield

Deposit USDC into fixed-denomination privacy pools. Pedersen + Poseidon commitments computed client-side.

03

Batch

All deposits aggregate into one USDC-to-BTC swap via AVNU. Individual intent hidden within the batch.

04

Prove

ZK proof generated in-browser (noir_js + bb.js). Garaga verifies ~2,835 calldata elements on-chain.

05

Exit

Claim WBTC on Starknet or intent-based native BTC settlement via escrow-solver-oracle.

What We Re{define}

Five things the ecosystem treats as trade-offs. We built the proof they're not.

Privacy = LawlessnessPrivacy + Compliance

Association Sets let you prove compliance without revealing transaction history. Same model proposed by Vitalik Buterin, adopted by 0xbow on Ethereum.

ZK Proofs = SlowBrowser-Side, On-Chain Verified

Noir circuits generate proofs in-browser via bb.js WASM. Garaga verifies ~2,835 calldata elements on-chain. Secrets never leave your device.

Bitcoin on Starknet = Wrapped TokensShielded BTC + Native Exit

Shielded accumulation via AVNU batch swaps. Exit to native Bitcoin through intent-based escrow with solver settlement. strkBTC-ready from Day 1.

AI = ChatbotPrivacy Strategist

Analyzes live pool conditions — anonymity set sizes, tier distributions, timing risks — and generates optimal multi-step deposit plans. Five strategy modes.

Monetization = Subscriptionsx402 Micropayments

Pay fractions of a cent per query, settled on-chain via AVNU paymaster. No API keys, no accounts, no middlemen. HTTP 402 for Web3.

Technical Architecture
AI Layer
Natural language strategy
5 optimization modes
Live pool analytics
x402 premium gate
Client (Browser)
noir_js witness gen
bb.js proof gen (WASM)
Poseidon BN254 commits
Starknet + BTC wallets
On-Chain (Cairo)
Pedersen commitments
Garaga ZK verifier
Merkle tree (depth 20)
Intent escrow + oracle
Infrastructure
AVNU DEX aggregation
x402 AVNU paymaster
Gasless relayer (AA)
Intent solver network
ZK Proof Pipeline
1.Noir Circuit → Poseidon BN254
2.noir_js → Witness (browser WASM)
3.bb.js → Proof (browser WASM)
4.Garaga → ~2,835 calldata felt252
5.Starknet → On-chain verification
x402 Payment Flow
1.Client → GET premium-strategy
2.Server → 402 Payment Required
3.Client → Sign via AVNU paymaster
4.Server → Verify + settle on-chain
5.Server → Return premium analysis
Built Different

AI-Planned Privacy

Strategy engine picks optimal tiers, timing, and pool conditions for maximum anonymity.

x402 Micropayments

HTTP 402-native premium APIs. $0.01 per analysis, settled on-chain via AVNU paymaster.

On-Chain ZK Proofs

Real Noir circuits verified by Garaga. Browser-generated proofs. No mock, no backend trust.

Native BTC Settlement

Intent-based escrow. Solver delivers native BTC. Oracle confirms. Trustless cross-chain exit.

Standardized Tranches

$1, $10, $100, $1,000. Fixed denominations create uniform anonymity sets.

MEV Protection

Individual orders hidden within batch execution. No mempool exposure.

Compliance Ready

Optional view keys for regulators. Prove your deposits without compromising others.

Telegram Strategy Bot

@VeilProtocolBot plans strategies in chat, links to web app for self-custody execution.

Deployed on Starknet Mainnet

Production

Real USDC, real WBTC, real AVNU integration, real Garaga ZK verification. Not a testnet demo — production infrastructure handling real assets with AI strategy and x402 payments.

Technology Stack
Cairo 2.15StarknetNoir ZKGaragaBarretenbergx402-starknetAVNU PaymasterPedersen HashPoseidon BN254Merkle TreesAssociation Sets (Privacy Pools)strkBTC-CompatibleNext.jssats-connectsnforge164 Tests

Re{defining} privacy on Starknet.

First Association Set Privacy Pool on Starknet. Real ZK proofs. Real mainnet deployment. Real money. Where compliance and confidentiality aren't enemies — they're the same thing.