
Encrypted Apps
VeilAds
Ads that pay you. Privacy that outlives quantum computers.
About
VeilAds is an ad network that pays you for your attention and never learns who you are. You scroll a short video feed and earn QOR for every ad you really watch, proven by a quick question at the end. Your interests stay in an encrypted vault on your phone, and advertisers' bids reach you sealed with ML-KEM-1024 (QoreSeal), so only your device can open them. The auction runs on your phone, so no server ever knows which ad you saw. Views settle on chain in ML-DSA-87 signed batches that the contract checks with pqcVerify. You cash out with your own post-quantum signature, and bot farms get slashed instead of paid. No wallet, no sign-up: new users start with 0 QOR and a fee grant covers their key registration.
How it's made
Idea and approach. Ad networks harvest profiles today, and even encrypted data can be stored and decrypted after Q-Day. We flipped the model: pay the viewer, keep the profile on the device, and make everything that travels post-quantum. We wrote a brief first, then ran five spikes on qorechain-diana before building. They confirmed that QoreSeal runs in the browser, that browser ML-DSA-87 signatures pass pqcVerify, that MsgCrossVMCall works for our services, that fee-granted 0-QOR key registration works, and that the precompiles work from a deployed contract. Architecture. One Solidity contract, VeilAdsMarket, holds escrow, bid-root commitments, settlement, bonds, caps, claims and challenges. It has 38 Foundry tests, including a solvency invariant. There are four Node services: a ciphertext-only envelope relay, an Attention Oracle with a bot watchdog, a relayer, and bidder agents. The React web app includes the viewer feed, a Campaign Studio and a judge mode. QoreChain features used: QoreSeal (ML-KEM-1024 + X25519), with recipient cards checked against the KEM registry and proven ML-DSA keys; PQC key registration with proof of possession, and MsgRegisterKEMKey; hybrid-signed transactions; the pqcVerify and pqcKeyStatus precompiles in Solidity; MsgCrossVMCall, so services call the contract without an EVM key; EVM windows scoped to our contract, for advertiser escrow; fee grants; an optional cross-VM note to the approved qday-receipts native contract. Kits: @qorechain/qoreseal, @qorechain/qoresign, @qorechain/pqc. What was hard: Matching the Oracle's ML-DSA-87 batch message byte for byte between TypeScript and Solidity; making netting batches unlinkable while still letting challenges and slashing refund correctly (the invariant test caught a double refund); keeping costs low: about 0.09 QOR per batch, and only 2 transactions per viewer, ever; being honest that no app can prove a human watched, so we made bot farms unprofitable instead (bonds, caps, a holding period and on-chain slashing). Tested end to end on testnet: 41 signed batches, 12 campaigns, and a bot-farm attack slashed on chain. A new viewer goes from first tap to cash-out in about 94 s. Co-built with AI; see AI_USAGE.md
Timeline
Earned a Ship Weeks badge.
First on-chain deployment detected on testnet.
Pushed 14 commits to main
- 8738270 Fix link formatting in README.md · 02Aditya2323
- 8245f11 Updated README · 02Aditya2323
- 224329f docs: drop duplicated Try it section · 02Aditya2323
- 2ab3db9 docs: README order (architecture first, local setup last), new demo video link, 16:9 cover image · 02Aditya2323
- 822688b Update README to remove deployment section · 02Aditya2323
and 9 more commits
New project.
Comments and questions
- No comments yet.