
Post-Quantum dApp
Surety
Escrow for cross-border freelancers that survives a stolen key
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
Comments and questions
- No comments yet.