Quantum Pass
Longhand
Autographs written in the post-quantum hand. The chain refuses every forgery.
About
A classical signature is 64 or 65 bytes. A QoreChain post-quantum signature is 4,627. Longhand is an autograph book that makes that difference something you can hold. Ask anyone on QoreChain for an autograph, or write one for a friend. The signer approves a short dedication in their QoreX wallet, which signs it with their ML-DSA-87 key. The book contract checks that signature against the key registered on chain for the signer, so a forgery, one changed letter, another recipient, another book or a second copy of the same autograph is refused. Every byte of the signature is then drawn as cursive handwriting: the classical signature is one short word, the post-quantum one fills a page. Try it: sign an autograph, open the Forgery lab, change one letter or flip one byte, and watch the chain say no.
How it's made
- Contract Longhand.sol on qorechain-diana (EVM). It builds the exact text the wallet shows (signer, recipient, note, book address, serial), reads the signer's registered key with the pqcKeyStatus precompile and verifies the ML-DSA-87 signature with pqcVerify over the QoreSign message domain "qorechain-msg-v1|qorechain-diana|". check() is a free eth_call; press() stores the autograph once per signed text. 11 Hardhat tests use real ML-DSA-87 signatures from the SDK against a mock precompile that only accepts library-verified signatures. - Wallet: QoreX signArbitrary for the autograph (no fee) and an ordinary hybrid-signed QoreX send for 0.25 test QOR of postage, with the autograph's fingerprint as the memo. - Press office: a small Cloudflare Worker that checks the autograph on chain, finds the postage, confirms it was hybrid-signed, and presses the autograph with its own hybrid-signed native MsgCrossVMCall into the EVM book. The book re-checks the signature, so the office cannot forge. - What was hard, and what we learned about the testnet: QoreX refuses to sign MsgCrossVMCall because it cannot display it, so pressing needed the postage design; logs emitted by a native cross-VM call are not served by the EVM JSON-RPC, so v2 stores each 4,627-byte signature on chain as data-contract code (signatureOf); the cross-VM message validates source_vm against the target even though the chain records the real origin; eth_getLogs is capped at 10,000 blocks and REST has no CORS, so the static app reads everything by id over the EVM RPC. - Web app: Vite + React, static, 147 KB gzipped. Every signature byte becomes one looped cursive letter (a prolate cycloid), same size for every signature, so lengths compare honestly. - Kits: create-qorechain-dapp (hardhat and fullstack-web templates), @qorechain/sdk (ML-DSA-87 keys, key registration with proof of possession, hybrid signing, cross-VM and bank messages), @qorechain/evm, the QoreX wallet.
Timeline
Pushed 8 commits to main
- 7a8fb43 README: run locally · Automationbot24x7
- d558128 README: how it works, chain findings, addresses, credits · Automationbot24x7
- 1ffbc26 Cursive ink: every byte is one looped letter, a signature fills a page; web drops the SDK (3.2 MB to 461 KB) with a byte-identical MsgSend encoder · Automationbot24x7
- 62687ef Explorer hint for testnet links · Automationbot24x7
- e58f14f Press office relay (Cloudflare Worker): checks autograph and hybrid-signed QoreX postage, presses with a hybrid native tx; web: pay postage and press · Automationbot24x7
and 3 more commits
New project.
Comments and questions
- No comments yet.