Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

Purser

A wallet your AI agent can use, but cannot abuse. Limits enforced by QoreChain, every instruction signed with ML-DSA-8

Share on X

About

Agents need to pay for things: APIs, data, compute, other agents. Today that means handing them a private key. One prompt injection or bad tool then spends whatever that key can reach, and the key is a classical signature a quantum computer will forge. Purser keeps the limits where the agent can't reach them. Three checks run on every payment: 1. Enforced by QoreChain: the agent gets an x/abstractaccount session key on the owner's account with a per-payment cap, a daily cap and an expiry. It may only call Purser's pay function. 2. Signed by the owner: the payee list, per-payee and per-agent daily caps, budget and approval threshold are signed with ML-DSA-87 in QoreX and verified on chain. 3. Signed by the agent: every payment intent carries the agent's own ML-DSA-87 signature, checked by the Purser contract with the pqcVerify precompile. Payments above the threshold need the owner's approval: the agent files a signed request, the owner approves with one QoreX signature, and the payment can go through exactly once. Agents can pay HTTP 402 invoices (fetch_paid), and a live paid API with real Open-Meteo forecasts is included. The agent obeys only instructions the owner signed; web content comes back marked as untrusted. It works with Claude and any MCP client: an MCP server with 11 tools, plus a dashboard that reads everything from the chain (agents, limits, payments with receipts, approvals, signed messages, and alerts for spend that bypassed Purser). Anyone can verify a payment in the browser. Tested with real, unscripted Claude Code sessions that paid a live HTTP 402 API and went through the approval flow, all on testnet.

How it's made

**Architecture** - contracts/: Purser.sol (Solidity, Hardhat 3 + viem). It stores owner-signed payee policies, enforces payees, per-payee and per-agent daily caps, budget, payments per day and approvals, and verifies ML-DSA-87 signatures with the pqcVerify (0x...0a01) and pqcKeyStatus (0x...0a02) precompiles. 115 tests with real ML-DSA-87 signatures, real hybrid-signed transactions and malformed-input fuzz cases. - core/: the agent library. Signs payment intents with ML-DSA-87, wraps MsgExecuteEVM in hybrid (ML-DSA-87) transactions signed by the ed25519 session key, opens the agent's own scoped EVM window (target = Purser only, tx count, value and block limits), and decodes contract reverts into plain reasons. - mcp/: the MCP server and CLI (stdio and Streamable HTTP). Tools: guard_status, list_payees, pay, request_approval, fetch_paid, list_payments, send_note, read_owner_messages, sign_message, verify_message, check_transaction. - web/: the owner app (Vite + React) with QoreX signing, a serverless relayer that delivers owner-signed policies and approvals, and the paid HTTP 402 demo API. **Kits and network features** @qorechain/sdk (session keys and spending rules, PQC key registration, hybrid transactions), @qorechain/pqc (ML-DSA-87), @qorechain/qoresign (message signing and verification), @qorechain/evm (EVM window, MsgExecuteEVM), QoreX types and the QoreX wallet test double for end-to-end tests in Edge.

Timeline

PurserPost-Quantum AI Agents

Earned a Ship Weeks badge.

PurserPost-Quantum AI Agents

Pushed 151 commits to main

  • 3d1a74e docs: demo video link · imthegoodboy
  • 20c43ca web: demo recorder for the new UI and Purser v2 (approvals scene, live demo account, read-only) · imthegoodboy
  • 3a190fc docs: real Claude Code sessions on v2 — HTTP 402 purchase, approval request, owner approval, approved payment · imthegoodboy
  • d80c080 Featured image (1920x1080) and the script that renders it · imthegoodboy
  • 525060c web: v2 session key may call only Purser.pay (link flow, diagram, rule check) · imthegoodboy

and 146 more commits

PurserPost-Quantum AI Agents

New project.

Comments and questions

  • No comments yet.