Skip to content
QORECHAIN
Register

Post-Quantum dApp

Assay

See the source. Know who signed it.

Share on X

About

Assay verifies that published Solidity source matches the bytecode deployed on QoreChain, and records a post-quantum publisher signature on chain. It recompiles the exact compiler input with an official, checksum-verified solc and reports exact_match (identical including metadata) or match (identical executable code). The publisher then signs the result with the ML-DSA-87 key registered to their account, and the AssayRegistry contract checks that signature on chain with the pqcKeyStatus and pqcVerify precompiles. The registry is deployed on the testnet, verified by Assay itself, and holds attestations for two contracts, one of which was revoked and attested again. Assay also re-verified 38 contracts that other fest projects list (13 exact_match, 25 match), read-only. A match proves that the source compiles to the deployed code; it does not prove the code is safe.

How it's made

TypeScript monorepo (pnpm, Node 22+) with a Solidity registry contract (Hardhat). MIT. QCAI audit (2 stages, Contract Auditor, EVM/Solidity): stage 1 on 25 Nov 2026, score 85/100, 4 findings, each answered; stage 2 on 26 Nov 2026 on the deployed source, score 82/100, the same 4 findings, no contract change needed. Reports and the finding-by-finding outcome: docs/AUDIT.md and docs/audit/. Kits: create-qorechain-dapp (scaffold of packages/registry), QoreChain SDK, qorechain-pqc, QoreSign, QoreX types, QoreScan, MCP server and qore CLI, custody kit (vendored). The Asset Kit's QoreChainHybridHolderGuard was deployed and verified as a test subject. Architecture: - packages/core: official native solc (keccak checked, own process), compare with the live code, classify the match, attestation digests, proxy detection (EIP-1967, EIP-1822, EIP-1167), CycloneDX crypto inventory with QoreScan. - packages/registry: AssayRegistry. attest, revoke and setVerifier each need an ML-DSA-87 signature from a key registered with proof of possession; the contract reads the key with pqcKeyStatus, checks the signature with pqcVerify, and fails closed if a precompile returns nothing. Hardhat tests: unit, fuzz, invariant, end-to-end. - apps/api (Hono, libSQL), apps/cli, apps/web (contract pages, submit form, QoreX signing, static read-only snapshot), apps/mcp (QoreChain's MCP server plus get_verification and list_attestations). - The project account (QoreX's account for its seed phrase) deploys and calls through MsgExecuteEVM with linked keys. A second verifier account submits through a scoped EVM window whose only allowed target is the registry. On-chain evidence (qorechain-diana, EVM chain 9800). Project account qor1l93e3ss6frqq4d9txeqsemwam693jsks4l82r4 (EVM 0xF96398c21a48c00AB4aB36410ceddDde8b1942D0): owner, publisher, first verifier. Verifier qor1xzzmgulu7495hma4d8lw7j8vqxxd5xc9egjlep (EVM 0x3085b473fcf54B4BEFb569FeEF48EC018CdA1b05). - Deploy key linked (rule allows no contract call): 5EFC7CBF570E4BCCAB59E1911C89EB50B8093CBBA0820F50BEDCE2A344CEEC5F - AssayRegistry 0x23f35f7923CE63F9A67cdC4443d1Bc9e3Bea82d5 created: AD2BB447C62D050572B03163300EAA83F01CB4AF8FB4AE2D8DC67A5CA7309909 - NaiveRegistry (control) 0x93A5d92AD47C6364eda623A6473A852BF6C63Ffc: 4BB5C261EAAFA82F19F1633907A390F6750D22D5244FDBEEC349183F6E5539C3 - Asset Kit guard 0xE750A3F49186e3deA84F1cd88879DBD4BCE747e6: 79A67791067C1AC944423DED07D3C1E3CE52008E6A4CACB763134E479DE999DA - Deploy key unlinked: EC74E0869C37EB5B83C2938F5427ED583AD1E94CD1D839C0E5823A44B3DB519B - Relayer key linked, rule allows only attest, revoke, setVerifier: E20ABEB2A5BC97A6713D57DC2941BCA7BF7773F1120ED1D68FD6ED8A9584A205 - Owner-signed setVerifier through the smart account, pqcVerify checked: 9A9D41D1E0C7986701490F503D1C662414226EC5DBCFFC3E9C1F3F6225F70E3B - Scoped window, allowed target = AssayRegistry only: 9342A8CFD3D7E01A92B8D8431596E0638D9D052EA9AEF8F1EF4DDA244BC3ECE7 - First attestation through the window, pqcKeyStatus and pqcVerify checked on chain: 0xecbdcd994a33a29a3ab0b72626ac3dbe2977518ef3bccb55e30cf24592929694 - Out-of-scope call through the window: not admitted, so no transaction - Guard attested through the smart account: C8367CD4291DE7894158F8CBB48F0B2CD8B122C2569FDB8CC56723323E79578A - Revoked: DFF132D1275969BE21F7A216E044E816AA2C5EB08DF60658F358FAE5C48644AC; attested again: 230358A7BE481AA952DD5C4FC42099C2CB8C49D063864BE44D93A79A5F068ED6 Smart-account calls change state but eth_getLogs does not return their events; read statusOf / getAttestation or pnpm assay status --address <contract>. Other fest contracts, read-only: 38 matched (13 exact_match, 25 match), 0 mismatched, 10 not reproduced, 3 with no public source; 24 of 38 reference pqcVerify or pqcKeyStatus (heuristic scan). Hallmark's record for an address is shown read-only and labelled as Hallmark's. Check it, no key, no .env, no API: pnpm install, then pnpm judge. It recompiles the two attested contracts from examples/, recomputes each source hash and compares with the live code and the on-chain attestation. Exit 0 when all agree, 3 otherwise. CI: ci.yml runs the typecheck and all tests with no .env; live-check.yml runs pnpm judge daily. Built with an AI coding assistant; workflow, generated work and human contribution in AI_USAGE.md. Limits: testnet software. A match is not a safety review.

Timeline

AssayPost-Quantum dApp

Pushed 13 commits to master

  • 66353fa Correct the docs and refresh the fest re-check · AIVirtualDoctor
  • 115485b Fix input parsing edge cases and use real values in the CLI fallback · AIVirtualDoctor
  • 1e1073f Load the API configuration the same way as the CLI · AIVirtualDoctor
  • 242880b Stack the tour cards on phones and keep doc table columns readable · AIVirtualDoctor
  • 9fd8d53 Update the demo video · AIVirtualDoctor

and 8 more commits

AssayPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.