Skip to content
QORECHAIN
Register

Post-Quantum dApp

Qlarc

Quantum-safe letters of credit, receipted on-chain.

Share on X

About

Qlarc is a quantum-safe, document-conditioned letter of credit on QoreChain's Diana testnet. It replaces the trusted operator in trade finance, the bank that decides what a document says and whether it counts, with an immutable contract and verifiable procedure. Four roles (applicant, beneficiary, issuing bank, advising bank) act through ML-DSA-87 post-quantum signatures. Each transition; issuance, presentation, discrepancy, amendment, settlement — writes a Native qday-receipts note on QoreChain, so the credit's entire history is auditable on-chain rather than reconstructed from emails. Disclosed documents are proven by Merkle inclusion, not by handing over a hash and asking for trust. The contract has no owner, no pause, no upgrade path, and no rescue function: once deployed, no party; including us, can rewrite a credit or move funds outside its stated terms. Private role keys never enter the browser. The system is verified, not asserted: 142 passing Forge tests (2 skipped), 42/42 post-quantum vector checks, a live deployment at qlarc.vercel.app with end-to-end verification on both the EVM and Native lanes, and a full screenshot record of every route and API response.

How it's made

What we set out to build A letter of credit is a promise that only works if someone can be trusted to read the paperwork. Our plan from the first day: remove that someone. We set out to build the credit itself as an immutable on-chain object — issued, presented, amended, and settled through signed role actions with a permanent, verifiable record — and to make every cryptographic choice post-quantum from the start rather than bolted on later. We deliberately scoped to one credit, four roles, and a complete happy path plus disagreements, because a trade-finance primitive is only convincing if it survives the awkward cases. Architecture Three layers, each chosen so the layer below can't quietly lie: - Contract (EVM lane, Solidity + Foundry). The credit state machine: issuance, document presentation, discrepancy handling, amendment, settlement. Immutable by construction — no owner , no pause , no proxy, no rescue. Funds (fUSD, 6 decimals) move only along paths the credit's own terms define. - Receipts (Native lane). Every transition emits a Native qday-receipts note. The EVM contract is the authority; the Native note is the durable, queryable record. Reading a credit's history means reading chain state, not trusting our frontend. - Application (Next.js). Role-scoped dashboards. Private role keys live server-side and never reach the browser; the client only ever sees public state and its own signed-session view. /api/verify/:id independently re-checks a credit against both lanes. Documents are handled by commitment, not custody: the file is hashed at presentation, and disclosure to a counterparty is proven by Merkle inclusion against the committed root, so a party can prove a document without revealing the rest. Network features and tooling QoreChain's EVM lane (Diana testnet, chain ID 9800, https://evm-testnet.qore.host ) hosts the contract and fUSD; the Native lane ( https://api-testnet.qore.host ) carries the qday-receipts notes, and the submission reads both so a verification can cross-check the two rather than trusting either alone. ML-DSA-87 provides post-quantum signatures for all four roles — this was a first-day decision, not a late addition, which is why the whole signing path is PQ rather than a single "quantum-safe" checkbox. Foundry for tests and deployment; the explorer at explore.qore.network for independent confirmation. What was hard 1. Making immutability real, not rhetorical. Without an owner or upgrade hatch, every mistake is permanent — so the design work moved into the state machine. Amendments had to be their own receipted transition, not a mutation, because there's no admin who can fix a credit after the fact. 2. Post-quantum signing across a boundary. ML-DSA-87 keys and signatures are large and unwieldy, and the browser was the wrong place for them. Keeping keys server-side while still proving which role acted meant designing the signing path so the on-chain evidence is the signature, not our assertion. 3. Two lanes, one truth. Reconciling an EVM write with a Native receipt — ordering, failure, retries, and what "verified" means when only one lane has confirmed — was the subtlest part. We resolved it by making verification explicit about which lane proved what. 4. Documentation states that fail safely. Discrepancy and partial disclosure are where naive designs leak; the Merkle commitment scheme had to work for the disclosed subset without weakening the undisclosed remainder. How it's verified 142 passing Forge tests (2 skipped, deliberately) covering the state machine and its failure paths; 42/42 post-quantum vector checks; a live deployment at qlarc.vercel.app with /api/verify/1..5 returning verified results on both lanes; and a screenshot record of every route. We treat "verified on both lanes" as a testable claim, not a slogan.

Timeline

QlarcPost-Quantum dApp

Pushed 1 commit to main

  • f9b022b docs: add Built on QoreChain badge to README · qlarc
QlarcPost-Quantum dApp

Pushed 1 commit to main

  • 5816a4d W-08: add AI usage disclosure for submission · qlarc
QlarcPost-Quantum dApp

Pushed 37 commits to main

  • 640ed5d video: land and render the animated promo · qlarc
  • 3822a2b docs: add a paste prompt for an animated promo, for web-only models · qlarc
  • c77f63a docs: make one script the source of truth for the demo video · qlarc
  • 44ed158 tools(video): make the demo video plan executable and self-checking · qlarc
  • 930342e docs: add a demo video brief for machine or human recording · qlarc

and 32 more commits

QlarcPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.