Skip to content
QORECHAIN
Register

Cross-VM

CargoDeed

The bill of lading a quantum computer can't forge.

Share on X

About

A bill of lading is the title to cargo at sea. Whoever holds the original can claim the goods at the port, and banks lend against it, so it is one of the most valuable pieces of paper in trade. It still mostly moves as paper, couriered between banks and buyers, and that is where the fraud and the delays live. Between 65 and 75 percent of documents under letters of credit are refused the first time they are presented (ICC Academy). Forged trade paperwork sat behind the 3.5 billion dollar Hin Leong collapse. Africa carries the worst of it, with 74 to 92 billion dollars of unmet trade finance demand a year (AfDB). The industry is moving to electronic bills of lading, with carriers committed to full adoption by 2030 (DCSA). But those title documents are being signed today with classical keys, and a quantum computer will be able to forge them. A title that can be forged after Q-Day is not a title. CargoDeed is a post-quantum electronic bill of lading on QoreChain. Each shipment gets one deed, and the deed is the title. Issue. The carrier signs the shipment with ML-DSA-87 (FIPS 204, NIST level 5), checked on chain by QoreChain's pqcVerify precompile against the carrier's registered key. The registry refuses a reused bill number or a second live deed for the same container, so a cloned bill is rejected even years later. Seal. The invoice, packing list and certificate of origin are encrypted to the buyer and exporter with QoreSeal, hybrid ML-KEM-1024 and X25519, so a copy recorded today stays unreadable after Q-Day. Only the envelope's SHA-256 goes on chain. Change one bit and it neither opens nor matches the deed. Settle. The buyer locks the price in fUSD. The exporter endorses the deed with ML-DSA-87, and one transaction checks the signature, pays the exporter and moves the title in a governance-stored Native registry through the CrossVM bridge. Both lanes change or neither does, so nobody ever holds the money without the title, or the title without the money. Surrender. The buyer checks the documents against the deed and surrenders it for the cargo. It can never move again. A stolen classical key moves nothing. Every title action needs the right party's ML-DSA-87 signature, and every native transaction is signed hybrid. What runs on the testnet today: four full shipments end to end, the latest cross-VM with the title written to the Native registry and 250 fUSD paid in the same transaction. Every run attacks the contract before settling (a classical key, a forged signature, a cloned bill, a duplicate container, JSON injection, an early refund and more), and all 37 attacks so far were refused. A mined transaction that the Native registry refuses reverts both lanes. The registry was stored by governance proposal #55 after the validators rebuilt the code and matched its checksum, and opened to the bridge by proposal #59. There are 142 tests with fuzz and invariant suites, a QoreScan crypto inventory, and a threat model mapping every threat to the test that checks it. Anyone can check it without trusting us. The live site reads every deed straight from the chain and re-checks each title signature in the browser with ML-DSA-87, using the signature from the transaction and the signer's key from the chain. The verifier hashes sealed documents locally, a QoreX user can connect read-only to see whether their key is registered and which deeds they hold, and one curl command reads the registry directly. CargoDeed starts with African exporters of cocoa, cashew and coffee selling to EU and Gulf buyers, the businesses banks refuse first. Carriers pay per deed instead of courier fees, and lenders get a title registry where financing the same cargo twice is impossible.

How it's made

Two contracts on two lanes. CargoDeedHouse (Solidity, EVM lane) verifies every title signature with the pqcVerify precompile (0x0a01) against keys read from pqcKeyStatus, holds the buyer's fUSD, and writes title into cargodeed-registry (CosmWasm, Native lane) through the CrossVM bridge (0x0901) in the same transaction as the payment. If the registry refuses a write, the whole transaction reverts, which a mined, reverted test transaction shows on testnet. CargoDeedLedger runs the same rules with title on the EVM lane. Documents are sealed with QoreSeal (hybrid ML-KEM-1024 + X25519) to the buyer's and exporter's qor1 addresses, with keys registered on chain and bound by recipient cards signed with ML-DSA-87. Only the envelope's SHA-256 goes on chain. Every native transaction is signed hybrid, and EVM transactions run through windows opened by hybrid-signed messages. Kits: QoreChain SDK (unified accounts, hybrid signing), QoreSign, QoreSeal, create-qorechain-dapp, @qorechain/pqc (the explorer re-checks every title signature in the browser), @qorechain/wallet-adapter (a read-only QoreX check of an account's key and deeds), the qore CLI and MCP server for independent checks, and QoreScan for a CycloneDX crypto inventory. 142 tests in Foundry and Rust, with fuzz and invariant suites, plus end-to-end runs on testnet that attack the contract before every settlement. What was hard: Native code is stored only by governance, and MsgStoreCode sits behind a circuit breaker, so the store proposal resets the breaker, stores and trips it again. The wasm build is reproducible, and the validators rebuilt it and matched the checksum (proposal #55). The bridge allowlist took three proposals: #56 and #57 missed quorum, and the team's #59 passed. The SDK's cross-VM params helper rejected the chain's live settings, so that message is encoded by hand from the live parameters. Testnet bills at least half the gas limit, so every transaction estimates gas first. The Solidity PQC checks are explained for jurors in docs/AUDIT.md: where pqcVerify and pqcKeyStatus are called, what each protects, and which tests cover it.

Timeline

CargoDeedCross-VM

Pushed 1 commit to main

  • 6772ee1 Point the README and site at the final demo film · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • f07d144 Link the transaction that surrendered the last live testnet deed · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • 9a6e42b Name the create-qorechain-dapp templates each lane was scaffolded from · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • 91908f3 Surrender the last live testnet deed and let any holder surrender from the CLI · mystiquemide
CargoDeedCross-VM

Pushed 38 commits to main

  • 3807cc9 Allow Cloudflare Web Analytics in the content security policy · mystiquemide
  • 5c45af7 Allow WebAssembly in the content security policy for the wallet adapter's crypto · mystiquemide
  • 8b27e03 Add a read-only QoreX account check to the deed explorer · mystiquemide
  • 51ac209 Verify every title signature in the browser with @qorechain/pqc · mystiquemide
  • b2b9bb8 Add a 30-second no-install path to the README and match cross-VM envelopes in Verify · mystiquemide

and 33 more commits

CargoDeedCross-VM

Pushed 1 commit to main

  • e73b502 Let visitors try to forge a bill against the live contract · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • fc6106e Fix the explorer overflow on phones and record the open offer-freeze issue · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • c79613e Add the QoreChain team's confirmation of the cross-VM run to the README · mystiquemide
CargoDeedCross-VM

Pushed 1 commit to main

  • e9bf548 Document the PQC precompile calls and link testnet transactions directly · mystiquemide
CargoDeedCross-VM

Earned a Ship Weeks badge.

CargoDeedCross-VM

Newly verified on chain: QoreSeal and the encryption key registry

CargoDeedCross-VM

Pushed 1 commit to main

  • 777ebe7 Link the Build Before Q-Day project page from the site and README · mystiquemide

Comments and questions

  • No comments yet.