Quantum Pass
QoreStamp
Post-quantum proof-of-existence: timestamp any content, signed with hybrid ML-DSA-87
About
QoreStamp is a post-quantum proof-of-existence registry on QoreChain. Anyone can commit the hash of any content - a document, a dataset, a prediction, a contract draft - and the chain stores who stamped it, when (block timestamp and number) and a short memo, forever. The point is the signature: every QoreChain transaction carries a hybrid ML-DSA-87 (FIPS 204) post-quantum signature alongside the classical one. A QoreStamp record therefore stays verifiable even against a future quantum adversary that could forge the classical signature alone - which is exactly the threat model for proofs whose value only grows over decades. What it does: - stamp(bytes32 contentHash, string memo) - commit a keccak256 content hash. First stamp wins; re-stamping the same hash reverts, because immutability is the point. - verify(bytes32 contentHash) - read back the stamper, timestamp, block and memo. - totalStamps() / stampAt(i) - walk the registry in stamping order. The browser demo hashes content locally (SHA-256 via WebCrypto, then keccak256) so the raw content never leaves the browser; only its hash goes on-chain. The demo page connects the QoreX extension wallet and sends the stamp transaction through it.
How it's made
Stack and approach: - Scaffolded with the create-qorechain-dapp starter template (evm-solidity, npm, TypeScript). - Contract QoreStamp.sol written in Solidity 0.8.28, compiled with solc, artifact embedded in the repo. - Deploy and interaction via the QoreChain TypeScript SDK (@qorechain/evm): createEvmClient, deployContract, writeContract, readContract. The script checks the account's post-quantum EVM authorisation window (evmWindowStatus from @qorechain/evm/window) before spending anything. - Signing happens in the QoreX extension wallet: the deploy key is the EVM (coin-60) account of a QoreX wallet, and the chain admits each transaction only inside the window that account's ML-DSA-87 post-quantum key opened. So each stamp transaction is hybrid-signed: classical secp256k1 + post-quantum ML-DSA-87 (FIPS 204). - Frontend: a dependency-light dark UI (plain HTML/JS) that connects the QoreX in-page provider (window.qorex), hashes content client-side (WebCrypto SHA-256 + js-sha3 keccak256) and sends eth_sendTransaction with ABI-encoded calldata for stamp(bytes32,string). - Network features used: hybrid ML-DSA-87 transactions, PQC key registration with proof of possession, the EVM authorisation window, and testnet tokens from the dashboard faucet. What was hard: understanding the EVM window model (an EVM tx is only valid inside a window opened by the PQ key, and opening one advances the account nonce), deriving the EVM key from the QoreX seed so the deploy key matches the coin-60 account, and the non-standard qor1 bech32-style address encoding (we take full addresses from the extension UI instead of re-encoding).
Timeline
New project.
Comments and questions
- No comments yet.