
Post-Quantum AI Agents
QoreGuard
A post-quantum AI agent with enforced spending limits and authenticated owner messaging
About
Giving an autonomous agent a wallet key gives it unlimited authority. Spending limits written in a prompt are not a security boundary, and a classical ECDSA key is forgeable by a quantum computer. QoreGuard separates custody, intent and enforcement: 1. Custody - the policy contract holds the budget; the agent holds no funds and no owner key. 2. Intent - the owner signs a human-readable instruction with secp256k1 + ML-DSA-87 over canonical JSON (QoreSign), binding chain, policy, agent, recipient, amount, task, issue time and expiry. 3. Enforcement - the contract checks per-transaction cap, daily cap, daily transaction count, allowlist, policy expiry, pause/kill, balance and replay; on testnet it reads the owner's registered ML-DSA-87 key with pqcKeyStatus and verifies a compact spend digest with pqcVerify. Every spend emits SpendExecuted. The agent's EVM key is confined to a scoped EVM window that can only call the policy, so prompt injection can change what the agent wants but cannot produce the owner's ML-DSA-87 signature or exceed the on-chain budget. Live run on QoreChain testnet (chain 9800): a valid 0.5 QOR spend executed; an over-cap 2 QOR spend was blocked (PER_TX_CAP); after pause the agent was blocked (PAUSED); after kill, blocked (KILLED); unsigned, tampered and expired intents were refused locally. 10 Hardhat + 30 Vitest tests.
How it's made
Architecture: owner (hybrid secp256k1 + ML-DSA-87) -> QoreGuardPolicy.sol on QoreChain EVM -> scoped EVM window -> agent -> vendor. Kits and network features: QoreChain TypeScript SDK (@qorechain/sdk) for native bank sends, PQC registration, EVM windows and hybrid signing; @qorechain/qoresign for the signed intent envelope; @qorechain/evm and viem for EVM; ML-DSA-87 via @qorechain/pqc; chain precompiles pqcVerify (0x...0a01) and pqcKeyStatus (0x...0a02); QoreChain testnet qorechain-diana / EVM 9800. What was hard: the public Omni/legacy examples differ from the current chain contract; the PQC registration is a classical-exempt bootstrap message; the EVM authorization window must be replaced after contract creation; and the unified account's native and EVM balances settle across lanes. The repository documents each of these in docs/SDK_NOTES.md.
Timeline
Pushed 15 commits to main
- 7c2f0b0 Document EVM-lane verification: unified account link + RPC receipts · matrixneoaiagent
- 5f384e1 Add QoreChain project badge · matrixneoaiagent
- 9cffe28 Add video player page for the QoreChain submission · matrixneoaiagent
- e52045e Add 31s live testnet demo video · matrixneoaiagent
- 0c1b4cd Live QoreChain testnet deployment: policy, spend, pause, kill + receipts · matrixneoaiagent
and 10 more commits
Earned a Ship Weeks badge.
Earned a Ship Weeks badge.
New project.
Comments and questions
- No comments yet.