Skip to content
QORECHAIN
Register

Encrypted Apps

Docket

Post-quantum double-blind evaluation desk and sealed-ballot ledger on QoreChain Diana.

Share on X

About

Grant committees, journal editors, and competition panels rely on double-blind peer review to stop institutional bias and herding. Standard review portals break that guarantee in two ways: one central database holds author names next to proposals in plaintext, and classical ECDSA keys cannot survive a post-quantum forgery attack. Docket fixes both failures on QoreChain Diana (EVM chain ID 9800): 1. Dual-Channel QoreSeal Isolation (@qorechain/qoreseal): Applicants seal two separate hybrid ML-KEM-1024 + X25519 envelopes right in the browser with round-bound AAD. Channel 01 (anonymous=true) delivers only technical claims to jurors and the auditor. Channel 02 locks author identity strictly to the chair and auditor, refusing juror keys with NOT_A_RECIPIENT. 2. ML-DSA-87 Precompile Enforcement (DocketDesk.sol): Every contract authority call verifies a 4,627-byte NIST FIPS 204 ML-DSA-87 signature via 0x...0a01 (pqcVerify) against a 2,592-byte public key with possessionProven == true from the 4-tuple 0x...0a02 (pqcKeyStatus) precompile. Classical ECDSA keys hold zero authority. 3. Anti-Herding Commit-Reveal & Deterministic Tally: Jurors commit salted keccak256 score commitments plus QoreSeal-encrypted critiques during CommitOpen, reveal during RevealOpen, and let DocketDesk.sol compute the weighted winner deterministically. Chair identity unsealing unlocks only after the tally finalizes. 4. Zero-Trust Audit Verifier & Attack Lab: Any evaluator can inspect live Diana Round #2, run an interactive double-blind round in the browser with zero wallet install, verify exported docket-audit-v1 JSON bundles on /verify (or locally with zero .env via `pnpm verify`, 31/31 PASS), and fire 5 live adversarial drills on /lab (5/5 refused).

How it's made

Architecture: - Smart Contract (Solidity 0.8.28, viaIR): DocketDesk.sol deployed live on QoreChain Diana at 0xcae1a5a1597abe49d0e5d3303f13aed59aeafc9c (block 11093803). Every mutating authority call (createRound, submitProposal, advancePhase, commitBallot, revealBallot, finalizeTally, recordIdentityUnseal) checks 0x...0a02 for a registered ML-DSA-87 key with possessionProven == true and verifies the 4,627-byte signature through 0x...0a01 using domain-separated digests and per-signer monotonic nonces. - Native-Lane Setup & Target-Scoped EVM Window: scripts/deploy-diana.mjs uses @qorechain/sdk EthNativeSigner over HTTPS REST to register all 7 evaluation identities (chair, auditor, 3 jurors, 2 applicants) with MsgRegisterPQCKeyV2 (including signProofOfPossession) and MsgRegisterKEMKey (ML-KEM-1024). After deploying DocketDesk, the chair closed its deployment window and opened a target-scoped EVM authorization window restricted exclusively to allowedTargets: [0xcae1a5a1597abe49d0e5d3303f13aed59aeafc9c]. - Post-Quantum Client & Web App (Next.js 15, React 19, Tailwind v4, viem): Built 4 routes (/, /rounds & /rounds/[id], /verify, /lab) plus a read-only allowlisted /api/lcd/[...path] server proxy to handle browser CORS against api-testnet.qore.host. Browser sealing and verification run real @qorechain/qoreseal and @qorechain/pqc client-side. What was hard and what we solved: 1. Undocumented 4-tuple ABI on live Diana 0x...0a02: Our pre-build live staticcall probe against evm-testnet.qore.host showed that Diana's 0x...0a02 pqcKeyStatus(address) returns a 4-tuple (bool registered, uint8 algorithmId, bytes pubkey, bool possessionProven) rather than the 3-tuple declared in @qorechain/evm@0.14.0. We wrote IQorePQC.sol and src/lib/chain.ts to decode the live 4-tuple and enforce possessionProven == true directly on chain. 2. Unified native sequence / EVM nonce coupling: Opening an EVM authorization window on the Cosmos lane increments the account's EVM nonce. Our deployment and live proof scripts wait for native tx confirmation and fetch a fresh EVM nonce before broadcasting EVM transactions. 3. Exact QoreSeal error boundaries: Because Channel 02 uses anonymous: false, unauthorized juror keys fail with NOT_A_RECIPIENT, while cross-round AAD replay fails with DECRYPTION_FAILED. Both refusal paths are tested in Vitest, verified in the live Attack Lab, and reproduced via zero-.env `pnpm verify` (31/31 PASS).

Timeline

DocketEncrypted Apps

Pushed 10 commits to main

  • fd992c9 feat(api): add allowlisted read-only Diana REST proxy and workbench storage · Pizzylee001
  • f2ec396 chore(evidence): record live QoreChain Diana deployment and Round #2 proof bundle · Pizzylee001
  • 0a99447 feat(scripts): add live Diana proof runner and zero-.env CLI verifier · Pizzylee001
  • d673d6f feat(scripts): add Diana REST native-lane signer, keygen, and deployment scripts · Pizzylee001
  • 416023a test(crypto): add Vitest ML-KEM-1024 isolation and ML-DSA-87 audit verifier tests · Pizzylee001

and 5 more commits

DocketEncrypted Apps

Pushed 24 commits to main

  • af0627e design: redesign 16:9 project cover with clean dual-envelope hardware graphic · Pizzylee001(not counted: no real change)
  • 3c3bfb5 assets: align Channel 02 refusal code to NOT_A_RECIPIENT on cover image · Pizzylee001(not counted: no real change)
  • 2f29b4a docs: add live Vercel deployment URL and align QoreSeal refusal codes · Pizzylee001
  • 36f5039 fix(ui): report exact NOT_A_RECIPIENT QoreSeal code on Channel 02 · Pizzylee001
  • 4a521d9 docs(readme): embed live application route screenshots · Pizzylee001

and 19 more commits

DocketEncrypted Apps

New project.

Comments and questions

  • No comments yet.