
Post-Quantum dApp
MintGuard
Stablecoin mint controls: two of three officers approve with ML-DSA-87, and a per-period cap no key can break.
About
An issuer key can create unlimited money. In October 2025 Paxos accidentally created about $300 trillion of PYUSD when a typo turned an intended $300 million transfer into $300 trillion. After Q-Day, a forged mint signed with a broken classical key would look exactly like a real one. MintGuard puts a demo stablecoin (mgUSD) behind a controller contract on QoreChain: - the operator, the day-to-day key, can only ask for mints and freeze accounts; - any two of three officers approve each mint, unfreeze and role change with an ML-DSA-87 signature from QoreX, checked on chain with pqcKeyStatus and pqcVerify against the officer's pinned key; - mints and role changes wait a delay; unfreezes need approvals but no wait; - requests expire seven days after they become ready, and can be cancelled before they run; - an approval names the officer, the request and its expiry, stops counting if that officer is replaced or their key changes, and an unfreeze can't undo a later freeze; - a per-period cap refuses a "300 trillion" request even with valid approvals; - the public page shows supply, the cap left, pending requests and every approval live from testnet, and its "Try to break it" panel runs three attacks against the live contract, with no wallet.
How it's made
Scaffolded with create-qorechain-dapp 0.14.0, each template in its own folder: - apps/contracts (Hardhat 3 + viem): npx create-qorechain-dapp@0.14.0 contracts --template hardhat --network testnet --package-manager pnpm --yes --no-install - apps/web (Vite + React + wagmi + RainbowKit with the QoreX connector): npx create-qorechain-dapp@0.14.0 web --template viem-wagmi --network testnet --package-manager pnpm --yes --no-install Post-quantum approvals use the project's own gate (PqcGate) and QoreX signArbitrary over QoreChain's pqcVerify and pqcKeyStatus precompiles. Every EVM transaction runs through an EVM window, and the operator's window lists only MintGuard. Every hole found in a review by hand was fixed with a test that fails without the fix (docs/AUDIT.md). 84 web tests. Built with AI coding assistance, described in AI_USAGE.md.
Timeline
Comments and questions
- No comments yet.