
Post-Quantum AI Agents
AidDrop
Relief cash in minutes: an AI agent pays small grants to verified households, within budgets QoreChain enforces.
About
Aid is slow to arrive and can be diverted. In June 2023 USAID, and a day later the UN's World Food Programme, suspended food aid to Ethiopia over the diversion of supplies. An AI agent can answer people quickly, but an agent that holds money can be talked out of it by a single message, so its limits must sit outside the model. What it does: - The NGO creates a campaign: a fixed grant (5 QOR in the demo), one per household, an end date and a reserve for exceptions. - Field officers register households with an ML-DSA-87 signature checked on chain by pqcVerify; only a salted hash of the ID number goes on chain. - A household signs a session text once and asks for help in chat. The model proposes one fixed-format decision, code checks it, and the agent's linked key pays payGrant from the payer account (a float the NGO funds, not the NGO's own account) through MsgExecuteEVM. - A need above the grant goes to the NGO, who approves it in QoreX; the campaign checks the NGO's ML-DSA-87 signature and pays from the reserve. - Donors see the budget used, households paid, exceptions, refusals and refused payments, with no personal data. QoreChain features used: - The agent key is linked to the payer account with an x/abstractaccount spending rule: EVM only, payGrant on the campaign only, 5 QOR per payment, 50 QOR per day, uqor only, a 7-day expiry. A stolen agent key can move at most the payer's float, never the NGO's account. - MsgExecuteEVM relayed and paid for by the agent's own account, with results read back, since a refusal is a code-0 transaction. - The agent account's own EVM window, scoped to the campaign only. - pqcVerify and pqcKeyStatus for officer registrations, NGO approvals and pauses.
How it's made
Scaffolded with create-qorechain-dapp 0.14.0, each template in its own folder: - apps/contracts (Hardhat 3 + viem): npx create-qorechain-dapp@0.14.0 contracts --template hardhat --network testnet --package-manager pnpm --yes --no-install - apps/web (Vite + React + wagmi + RainbowKit with the QoreX connector): npx create-qorechain-dapp@0.14.0 web --template viem-wagmi --network testnet --package-manager pnpm --yes --no-install Added on top: the BeneficiaryRegistry and Campaign contracts and their tests; the agent (packages/agent) and chain helpers (packages/chain), served as Vercel Functions from the web app; a setup tool (apps/setup) that makes the agent's keys offline and links them under the spending rule. The post-quantum precompile calls, the signed-text format and the agent's chain actions are this repository's own code on QoreChain's official kits (@qorechain/sdk, @qorechain/evm, @qorechain/qoresign, @qorechain/qorex-rainbowkit). The model only proposes; code and the chain decide. Built with AI coding assistance, described in AI_USAGE.md.
Timeline
Comments and questions
- No comments yet.