Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

QoreConnect

Quantum-safe root. MetaMask convenience. The migration layer that lets any MetaMask user use any EVM dApp on QoreChain.

Share on X

About

QoreChain only accepts EVM transactions from accounts that have a registered post-quantum (ML-DSA-87) key. MetaMask can't hold that key, so the Ethereum users QoreChain wants to attract can't send a single EVM transaction. Every dApp team would also have to rebuild the same onboarding and relayer code. QoreChain's roadmap makes the hybrid EVM lane Required in Q3 2027, but only after most EVM traffic already signs hybrid. QoreConnect is the layer that gets that traffic there. How it works: - One passkey tap creates a post-quantum root account (ML-DSA-87 + secp256k1) in the browser. The seed is encrypted on the device, and nothing secret leaves the browser. - The root links your MetaMask key as a capped session key: a per-transaction limit, a daily limit, an allow-list of the dApps you approved, and an expiry. The chain enforces all of them through QoreChain's abstract-account spending rules, so this isn't just a UI promise. - A sponsored relayer submits MetaMask-signed calls and pays gas from gas tanks that dApps fund. The first registration fee is sponsored, so a new user needs no QOR at all. Onboarding takes 1 passkey tap and 1 MetaMask signature, and 19.8 s from a fresh browser on the live site. - Never sign blind: every call is decoded, simulated and checked against your limits before MetaMask asks for a signature. Calls the chain would refuse show as "Blocked by chain". - Q-Day kill switch: one root-signed transaction revokes every classical key at once. - AI agents with the same safety rails: an agent gets its own capped sub-account and acts only on instructions the root has signed with ML-DSA-87. A prompt-injected agent was refused by the chain on Diana. - Migration Meter and Doctor: a public page measures how much of QoreChain's EVM activity has a post-quantum root, and the Doctor diagnoses any account in one click. - Account services: a shareable Q-Day exposure report, limit presets in plain English, one-tap key renewal, and a token-approval scanner with revoke. For dApps, it's a drop-in wagmi connector (9 lines). Existing useWriteContract code works unchanged. The SDK is published on npm as @rohankumar4179/core, /react, /wagmi and /relayer, and the relayer is self-hostable.

How it's made

Architecture (pnpm monorepo, TypeScript, Apache-2.0): - packages/core: root vault (ML-DSA-87 + secp256k1, encrypted with a passkey PRF or a password fallback, plus a recovery code), chain client, session keys and spending rules, an EIP-1193 provider, the signing preview (decode + simulate + limit check), and root-signed agent instructions. - packages/wagmi: a wagmi v2 connector plus qoreTransport(); a dApp adds QoreConnect in 9 lines. - packages/react: onboarding modal, dApp approval sheet, signing preview and unlock prompt. - packages/relayer + apps/relayer (Hono, Docker): pre-checks every call against the on-chain rules, wraps the MetaMask-signed authorisation in a hybrid MsgExecuteEVM, pays gas from per-dApp gas tanks, sponsors the first registration fee, and runs the Migration Meter indexer and the Doctor. - apps/web (Next.js, strict CSP): landing, onboarding, dashboard with kill switch, agents, presets, renewal, approval scanner, /meter, /doctor and the exposure report. - apps/demo-dapp (Vite + wagmi): the Quantum Tip Jar demo and an attack page where a drainer dApp tries to empty an account. - examples/agent: an AI agent (Claude via the Anthropic SDK, with a deterministic fallback planner) that verifies root-signed ML-DSA-87 instructions before acting. - contracts (Foundry, 35 unit and fuzz tests): QoreTipJar, Drainer (attack demo), and QoreConnectGuard, which checks ML-DSA-87 signatures on-chain with the pqcVerify precompile and pqcKeyStatus (possessionProven) for high-value actions. QoreChain kits and network features used: - @qorechain/sdk 0.14.0: accounts, hybrid ML-DSA-87 signing, abstract-account messages (link authenticator, update spending rules, revoke), MsgExecuteEVM. - @qorechain/pqc 0.2.3: ML-DSA-87 keys and signatures (through the SDK's pqcSign and pqcVerify). - x/pqc key registration with proof of possession, sponsored for new users. - x/abstractaccount smart accounts: session keys with per-tx limits, daily limits, allowed_evm_calls (contract or contract/selector allow-list) and expiry. - A scoped EVM window: the contracts were deployed inside one. - The Solidity PQC precompiles pqcVerify (0x...0a01) and pqcKeyStatus (0x...0a02) in QoreConnectGuard. Deployment: web app and demo on Vercel, relayer on Render. Live: https://qoreconnect-web.vercel.app and https://qoreconnect-demo.vercel.app, relayer health at https://qoreconnect-relayer.onrender.com/health. What was hard: 1. MetaMask can't produce ML-DSA signatures, so the design separates a quantum-safe root, which holds authority, from a classical MetaMask session key that the chain caps. Before writing any product code, a spike on Diana proved the authenticator, spending-rule and EVM behaviour (rejection codes 5, 6 and 10). 2. Zero-QOR onboarding. Registering a PQC key costs a fee, so a sponsor pays it and the relayer pays gas from dApp gas tanks, with abuse limits. 3. "Never sign blind." MetaMask only shows a raw digest for the authorisation, so QoreConnect decodes and simulates every call and shows exactly what the chain will allow or refuse before the signature. 4. Proving safety, not claiming it. The attack demo uses a stolen session key with the attacker's own relayer (no pre-check), and the chain still refused it (code 10). A prompt-injected AI agent was also refused on-chain. Every claim links to a Diana transaction in docs/testnet-evidence.md. 5. Choosing the right wallet: QoreConnect waits for MetaMask's EIP-6963 announcement and never picks QoreX or another wallet that also claims isMetaMask. Testing: unit tests in CI (mocked chain), Foundry tests (QoreTipJar 100% coverage, Guard 97.6%), live integration tests on Diana, and Playwright E2E against the production site (5/5 passing).

Timeline

QoreConnectPost-Quantum AI Agents

Pushed 44 commits to main

  • 63237a4 Agent works with the hosted dashboard: allow https://qoreconnect-web.vercel.app (and local dev) by CORS, answer Chrome's private-network preflight, use the public relayer by default · rohan911438
  • 8f4f0e5 Find MetaMask, never another wallet: wait up to 1.5 s for MetaMask's EIP-6963 announcement, ignore QoreConnect's own, and never fall back to a window.ethereum that belongs to QoreX or another wallet ( · rohan911438
  • f20af3d Developers page (/developers): the four npm packages, stack diagram, quick start, recipes, comparison; header, footer and landing link to it; landing onboarding time 19.8 s; video script split into sc · rohan911438
  • e3bec96 README: npm install section, package links, status (deployment and npm packages shipped; demo video in progress) · rohan911438
  • c8618f3 Publish the SDK under @rohankumar4179/* (core, react, wagmi, relayer); npm READMEs for each package · rohan911438

and 39 more commits

QoreConnectPost-Quantum AI Agents

Pushed 1 commit to main

  • 9b2f280 README: move Tracks and awards near the top, right after At a glance · rohan911438
QoreConnectPost-Quantum AI Agents

Pushed 1 commit to main

  • 8688df3 README: Tracks and awards section (main category requirement mapping R1-R8 with Diana evidence, Best AI-Native Build, People's Choice, Quantum Campus, Regional, Top-Quality) · rohan911438
QoreConnectPost-Quantum AI Agents

Pushed 1 commit to main

  • 6554ec8 README: why QoreConnect matters, design principles, engineering and optimizations table (measured before/after from STATUS.md); AI-Native row reworded · rohan911438
QoreConnectPost-Quantum AI Agents

Pushed 1 commit to main

  • 8d57379 README: detailed rewrite with problem/solution, 15 diagrams (architecture, account model, deployment, onboarding, transaction, relayer pipeline, approval, agent, kill switch, defence in depth), measur · rohan911438
QoreConnectPost-Quantum AI Agents

Pushed 1 commit to main

  • 99ca009 README: Built on QoreChain badge, demo video and submission page links; demo video marked shipped · rohan911438
QoreConnectPost-Quantum AI Agents

New project.

Comments and questions

  • No comments yet.