A post-quantum protocol for permissionless intent execution and atomic multilateral settlement. Users declare the outcome they want and the constraints that must hold; permissionless solvers find matches and multilateral netting; a settlement contract verifies ML-DSA-87 intent signatures, price, quantity, deadline and asset conservation on chain, then settles the whole batch atomically. Solvers compute, contracts adjudicate.
Deployed contracts and proof:
- Settlement 0x59f93023192F023F041a088612c7eBF6217de452 (QoreChain Diana testnet, EVM chain 9800)
- PLB demo token 0x51b21E24993802E47F26c7fff2A54B5D043De741
- PLC demo token 0x980D3fec579eFC005f882D30B5AC6cf34c1E0486
- Live settleBatch tx https://explore.qore.network/tx/0x0c441c36aecaa928454b1d52306788fc36a99feb24b11fa6329ad54cb7f72bd3
How it's made
Settlement is a Solidity contract on the QoreChain EVM (diana testnet) that verifies every intent's ML-DSA-87 signature with the pqcVerify precompile and reads trader keys through pqcKeyStatus, requiring proof of possession. Intents are signed off chain with QoreSign / QoreX over the qorechain-msg-v1 message format. Matching and netting run in an off-chain TypeScript solver; anyone can submit a batch, and the contract enforces constraints and conservation so no solver needs to be trusted. Built with Foundry and TypeScript, audited with the two-stage QCAI flow, with a trading-terminal GUI on top. Built with OpenAI Codex, documented in AI_USAGE.md.