Skip to content
QORECHAIN
Register

Post-Quantum dApp

Pactum

Agreements a quantum computer can't forge

Share on X

About

Pactum is document signing that stays provable after Q-Day. Today's e-signatures rely on RSA and elliptic-curve keys that a large quantum computer will break; once that happens, anyone could forge an old signature. With Pactum, every signer signs with ML-DSA-87 (NIST FIPS 204) from their own QoreX wallet, and a smart contract on QoreChain verifies each signature with the pqcVerify precompile before it records it. Drop a document (it never leaves your device; only its SHA-256 fingerprint is used), add up to 16 signers and share the link. Each signer adds the same file and signs in QoreX; when everyone has signed, the agreement is executed on chain. Anyone can look up a document, re-check every signature in their own browser, and download an evidence file that verifies offline, even after a signer changes keys.

How it's made

Scaffolded with create-qorechain-dapp (hardhat + fullstack-web templates). Stack: Solidity on the QoreChain EVM lane, @qorechain/sdk, @qorechain/evm, @qorechain/pqc, @qorechain/qorex-types, React + Vite, viem. The hard part: QoreX cannot sign EVM transactions or arbitrary messages yet. So each action (create, sign, decline, withdraw) is a QoreX-signed native transaction: a 1 uqor self-transfer whose memo names the action and the agreement id, hybrid-signed with secp256k1 + ML-DSA-87. The Pactum contract (HybridTx.sol) parses that transaction from calldata, rebuilds the exact bytes ML-DSA-87 signed (hybrid sign bytes v2) and the native tx hash, reads the signer's key from the pqcKeyStatus precompile and verifies it with pqcVerify. The agreement id commits to every term, so nothing can be altered. An untrusted relayer pays EVM gas through an EVM window scoped to the Pactum contract only (allowedTargets); it cannot forge anything, since the contract re-checks every signature. Each seal records the hash of the verifying key and the events log the key itself, so signatures stay verifiable after key rotation. Tests: 31 Hardhat tests on real ML-DSA-87 signatures, a live testnet end-to-end suite, and a browser end-to-end suite with two QoreX test wallets, all passing against production. Security audit: QCAI Stage 1 (72/100) and Stage 2 (78/100), every finding answered in docs/AUDIT.md. AI usage: AI_USAGE.md. Contract (v3): 0x5B5cFbf73c3a81CC23b0009849Ae9EFB922f647e on qorechain-diana.

Timeline

PactumPost-Quantum dApp

Earned a Ship Weeks badge.

PactumPost-Quantum dApp

Pushed 14 commits to main

  • 7814764 Link the demo video; keep the demo folder out of the repo · imthegoodboy
  • 8852f79 Add demo video pipeline · imthegoodboy
  • 69643e1 Clean, standard UI: readable font, proper drop zone, cards · imthegoodboy
  • ddbb650 Audit round 2: contract v3, redesigned app, relayer timeouts · imthegoodboy
  • 2ba33e0 Deploy to Vercel: https://pactum-eight.vercel.app · imthegoodboy

and 9 more commits

PactumPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.