Skip to content
QORECHAIN
Register

Cross-VM

Handed In

By Stealing a classical key, You still can't fake anyone's homework.

Share on X

About

Students hand in work and are later told "I never got it" or "it was late". The only record is in a portal the school runs, so the teacher's word wins. Handed In gives the student a public receipt that can't be backdated, and nobody can forge one that Verify accepts. The browser signs the file's sha256 with a post-quantum ML-DSA-87 key, and the file never leaves the computer. In one transaction, the HandIn contract on QoreChain's EVM side checks the signature, the class list and the deadline, then writes the receipt into a Native contract with no admin. If the Native side refuses, the EVM side is undone too. Classical keys only pay fees. Holding one, even the relay's or the teacher's, doesn't let you hand in for a student or move a deadline. Anyone can verify a receipt from the file alone. Live demo: https://handed-in.vercel.app

How it's made

HandIn.sol (Solidity 0.8.28, Hardhat 3) holds the rules: the teacher's key hash, the class list, deadlines and per-student nonces. Every hand-in and every teacher command is checked on chain by the pqcVerify precompile, over a message bound to the chain id, the contract and a nonce. The receipt goes to the Native CosmWasm contract qday-receipts through the Cross-VM bridge (0x...0901) in the same transaction. If the Native side refuses, the EVM side is undone; a drill on the testnet shows it. A Node relay pays fees from a scoped EVM window that admits only HandIn. It dry-runs every hand-in for free. Before each send it reads its own balance and transaction count from the chain, so a 30 QOR floor and a daily cap hold across server instances. The relay has no authority: it can only deliver what students signed. QoreChain features used: pqcVerify and pqcKeyStatus, Cross-VM calls into a Native contract, PQC key registration with proof of possession, hybrid ML-DSA-87 transactions, scoped EVM windows, a MsgCrossVMCall from QoreX on the native lane, Native smart queries, and @qorechain/sdk and @qorechain/evm 0.14. A second page hands in from a normal QoreX account with one post-quantum-signed MsgCrossVMCall, with no Ethereum-type account and no EVM window. There are 77 tests (npx hardhat test). docs/PROOF.md lists 23 testnet transactions, including the demo, forged teacher and student signatures refused on chain, a late hand-in, the atomicity drill, a revoked key and the 3-receipt cap. npm run proof re-checks every row against the chain.

Timeline

Handed InCross-VM

Pushed 38 commits to main

  • 04b0997 Read receipts from the Native contract by id, so QoreX native-lane hand-ins (MsgCrossVMCall, no EVM log) show in Verify and the Receipts grid; proof rows for receipts #111 and #112; docs describe the · Soka457han
  • ae46d51 QoreX page: hand in from the normal QoreX account on QoreChain's native lane (MsgCrossVMCall, one post-quantum-signed transaction); no Ethereum-type account, no EVM window · Soka457han
  • 7f28920 QoreX page: stay connected for the tab's life, show the QoreChain and EVM addresses with Copy buttons · Soka457han
  • c20e67f QoreX page: on NoPqcKey, let QoreX set up its EVM account and continue · Soka457han
  • 25c70da Merge restyle: dark card layout, info sidebar, Receipts grid, on v2 · Soka457han

and 33 more commits

Handed InCross-VM

Pushed 1 commit to main

  • 5907faa Update README.md · Soka457han
Handed InCross-VM

Pushed 1 commit to main

  • a73ec76 README: video link, architecture diagram, fresh screenshot of the live site · Soka457han
Handed InCross-VM

Pushed 1 commit to main

  • 3ff7dbd AI_USAGE.md: how AI agents built and checked Handed In · Soka457han

Comments and questions

  • No comments yet.