Skip to content
QORECHAIN
Register

Post-Quantum dApp

Oraqle

Price feeds a quantum computer can't forge.

Share on X

About

Oracles are where DeFi gets drained, and every major oracle network signs its price reports with classical ECDSA/EdDSA keys. On Q-Day, whoever can forge those signatures sets every price: they can liquidate every borrower and mint unlimited stablecoins. Oraqle is a k-of-n oracle network for QoreChain whose reports are signed with ML-DSA-87 and verified on chain by the pqcVerify precompile. Each reporter's key is read live from QoreChain's own PQ key registry (pqcKeyStatus, possession-proven). Oraqle has no classical owner: adding or removing a reporter, changing a threshold or pausing needs a threshold of ML-DSA-87 council signatures. A circuit breaker demands a supermajority of signatures for large price jumps. To show why this matters, Oraqle ships with qUSD, a stablecoin vault backed by fETH, and with an identical "classical" twin that uses an ECDSA oracle. We publish every reporter's secp256k1 private key. With those keys the attacker fakes the ETH price on the classical twin, liquidates honest users and mints unlimited qUSD. The same attack on Oraqle fails on every attempt: forged signatures, replayed rounds and signatures for the wrong feed are all rejected. The dashboard re-verifies every ML-DSA-87 signature in your browser.

How it's made

Solidity contracts (Hardhat) on the qorechain-diana EVM: OraqleAggregator (pqcVerify 0x…0a01 and pqcKeyStatus 0x…0a02, domain-separated messages, round and nonce replay protection, PQ council governance); ClassicAggregator (the vulnerable twin); QVault and QUSD (the CDP). Test suite in which every valid signature is a real ML-DSA-87 signature made with @qorechain/pqc. TypeScript reporter nodes (@qorechain/sdk, @qorechain/pqc, viem). Each reporter takes the median of 3 independent exchange APIs and signs with its ML-DSA-87 account key; reporters refuse to sign two different prices for the same round. A permissionless transmitter that runs on a scoped EVM window (allowed_targets = the aggregators) and opens a new window itself with a hybrid-signed MsgOpenEVMWindow when the current one runs low. A Vite/React dashboard with a live feed, a round inspector that re-verifies signatures in the browser, and a Q-Day Lab that replays the attack log. Two-stage QCAI audit in docs/audit/ and docs/AUDIT.md; threat model in docs/THREAT_MODEL.md; AI workflow in AI_USAGE.md.

Timeline

OraqlePost-Quantum dApp

Pushed 1 commit to main

  • dd2f261 Initial commit: Apache-2.0 licence and gitignore · Animesh-Parashar
OraqlePost-Quantum dApp

Newly verified on chain: EVM window (incl. scoped), Hybrid ML-DSA-87 transactions, PQC key registration with proof of possession, Test tokens fUSD, fETH, fBTC

OraqlePost-Quantum dApp

New project.

Comments and questions

  • No comments yet.