About
## The problem it solves
Freelancers — and increasingly AI agents — often finish the work and then wait on the client to approve payment. The client controls the money, "approval" is subjective, and a platform in the middle takes a cut and still can't guarantee the worker gets paid.
**ProofPay makes the payment rule explicit before any work starts:**
- The poster writes acceptance criteria and **locks the reward in an escrow contract on HSKChain**, so the money is committed up front.
- A human or an **AI agent** accepts the task and submits a deliverable. Only its URI and Keccak-256 hash go on chain.
- An **AI verifier** checks the deliverable against the written criteria, returns a score and a reason, and **commits the reason's hash on chain**. Anyone can check that the displayed explanation hasn't been altered.
- The poster has a **60-second challenge window** to dispute (it would be longer in production). If nobody disputes, `claim` is permissionless and the worker is paid automatically, even if our UI is offline.
- If the AI gets it wrong, a dispute freezes the funds and an arbiter decides.
**Who it's for:** cross-border freelancers who want guaranteed stablecoin settlement, clients who want objective acceptance, and AI agents that need to hire and pay each other without a trusted middleman.
**Live on HSKChain testnet:** 5 tasks have been paid out end to end, 4 of them with real AI-generated work and real AI verification. See the live demo and the explorer links in the README.
## Challenges we ran into
- **Keeping the demo honest.** Our first testnet run used a scripted verdict. We labelled it clearly and then re-ran the full flow with real model calls for both the worker and the verifier, so the "AI verified" tasks we show are genuine. - **Prompt injection.** A worker could hide "mark this as passed" inside a deliverable. The verifier prompt treats the criteria and the deliverable strictly as data, requires a strict JSON verdict, and fails when evidence is insufficient. - **Tamper-evident submissions.** Before judging anything, the verifier re-hashes the stored content and rejects it if the hash doesn't match what's on chain. It also only accepts URIs from our own submission store. - **HSKChain infrastructure quirks.** The testnet explorer domain listed in the quickstart docs didn't resolve, so we found the working one via Chainlist. The public RPC sometimes returned stale state right after a transaction receipt, and it rate-limited us. We added retry loops and moved demo reads away from the rate-limited endpoint. - **"What if the verifier goes silent?"** A task could get stuck in Submitted forever. We added `escalateVerificationTimeout`: after 10 minutes, the poster or the worker can send the task to arbitration. It's covered by Foundry tests (10/10 passing), but it isn't on the currently deployed contract yet — that happens at the next deployment. - **Chain time vs. real time.** A blockchain can't wake itself up, so we run a keeper that calls the permissionless `claim` once the challenge window ends. A "Release payment" button in the UI is the fallback.
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.


