Security model
What each key can do
Section titled “What each key can do”| Key | Can | Cannot |
|---|---|---|
| Payer’s ML-DSA-87 | sign payments up to the escrow balance or the agent budget; request an escrow withdrawal | pay more than it signed, to anyone it did not name |
| Payer’s ML-KEM-1024 | open answers sealed to the payer | sign anything |
| Payer’s classical (secp256k1) | send EVM transactions inside the payer’s open window | pay, or withdraw from the escrow: both need the ML-DSA-87 signature |
| Gateway’s ML-DSA-87 | sign receipts | move a payer’s money |
| Gateway’s ML-KEM-1024 | open requests sealed to the gateway | sign anything |
| Relayer’s classical | submit settlements inside its scoped window, paying the gas | change what payers signed, or send the money elsewhere |
Keys are never taken from a message. The ML-DSA-87 key comes from pqcKeyStatus, and only a key registered with proof
of possession counts. The ML-KEM-1024 key comes from the KEM key registry, by address. Both are read for the same
account, so the payer who signs is the payer the answer is sealed to.
What is protected
Section titled “What is protected”- The payment, against forgery now and by a future quantum computer: ML-DSA-87 (FIPS 204), checked on chain by the contract that moves the money.
- The bodies, against anyone on the path, including a TLS-terminating proxy, and against “record now, decrypt later”: ML-KEM-1024 (FIPS 203).
- The answer’s origin: a receipt signed by the gateway’s ML-DSA-87 key, bound to the exact bytes received.
- Replays: a nonce per payment, a time window, and a request hash that ties each payment to one request.
What is not
Section titled “What is not”- Metadata. Method, path, sizes, timing, addresses and amounts are visible on the wire and on chain.
- Sealed envelopes are not signed. Anyone can seal a request to the gateway; who paid comes from the payment.
- Double spending across servers. Two servers can verify payments against the same balance before either settles; the first settlement wins.
- Server restarts forget accepted payments; a replay after a restart is served again, and its settlement fails on chain.
- No refunds or disputes. The receipt is evidence, nothing more.
- Denial of service. There is no rate limiting.
- Browser clients are not supported yet: the KEM registry’s REST API sends no CORS headers.
What is testnet-only
Section titled “What is testnet-only”The pqcVerify and pqcKeyStatus precompiles and the KEM key registry are QoreChain testnet features today. The
in-memory chain the local quickstart uses models the escrow and the vault; it proves nothing about the real chain.
The full threat model, with the test that exercises each defence, is
docs/threat-model.md.