Skip to content
QORECHAIN
Register

Post-Quantum dApp

Surety

Escrow for cross-border freelancers that survives a stolen key

Share on X

About

A freelancer in Lagos and a client in the US don't trust each other. Surety is an escrow contract on QoreChain: the client locks funds, the freelancer delivers, the client approves and the funds release. The deal terms (freelancer, refund address, guardian, amount, deadline) are fixed at creation, so even someone holding the client's key cannot cancel, redirect the payment, change the freelancer or withdraw. They can only approve payment to the freelancer. Timeouts protect both sides: if the client goes silent, the freelancer can claim after a review window, and if nothing is delivered by the deadline, funds return to a pre-set refund address.

How it's made

Solidity 0.8.24 contract built with Hardhat and OpenZeppelin, deployed on the QoreChain testnet (qorechain-diana) through the EVM lane. Two layers of protection: (1) the chain admits EVM transactions only from accounts with a registered ML-DSA-87 key and an open authorisation window; in development a classical key alone was refused with "no usable registered post-quantum key ... no open EVM authorisation window". (2) The contract limits every role: immutable terms, only the guardian can cancel, refunds only go to a fixed address, and the client can only release funds to the freelancer. 7 local tests cover the attacks. The testnet demo (deal #1) shows cancel and early refund reverting on chain while delivery and approval succeed; transaction hashes are in the README. Limits: the guardian is an ordinary address in this version, and the testnet demo uses one funded account as client and freelancer. Roadmap: on-chain ML-DSA-87 verification with the PQC Verify precompile, real fUSD settlement, and a simple arbiter.

Timeline

SuretyPost-Quantum dApp

Pushed 1 commit to main

  • cf47692 Fix profile form, window checks, guardian fallback · sirmos(not counted: no real change)
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 609223e Add build badge for QoreChain · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 7268bc4 fix: lock profile form against background polling · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • b55fc39 fix: prevent background polling from resetting profile form · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 25af7bd chore: remove temporary site archive · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 66e8c5d Redesign site with live board · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 04bdaa0 Add marketplace contract and web app · sirmos
SuretyPost-Quantum dApp

Pushed 3 commits to main

  • a165e44 README with testnet proof · sirmos
  • 0a43d6b Surety: escrow with tests and demo · sirmos
  • 32c6aec Initial commit · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 6e35c56 README: add PqcCheck · sirmos
SuretyPost-Quantum dApp

Pushed 1 commit to main

  • 25dc5de Add PQC key-status check contract and deploy script · sirmos
SuretyPost-Quantum dApp

Earned a Ship Weeks badge.

SuretyPost-Quantum dApp

Earned a Ship Weeks badge.

SuretyPost-Quantum dApp

Earned a Ship Weeks badge.

SuretyPost-Quantum dApp

Pushed 1 commit to main

  • b96cda2 Connect QoreChain Build app · sirmos(not counted: no real change)
SuretyPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.