About
## Wave 2 submission
🛡️ ZKWork — Privacy-Preserving Freelance Marketplace on Aleo
ZKWork is a fully on-chain freelance marketplace where every action runs as a zero-knowledge transition. Workers get hired, paid, and build reputation without ever revealing their identity on-chain.
🔗 Live App: https://zk-work.vercel.app
🎞️video: https://youtu.be/cg6m-iZDSoA
📜 Smart Contract: zkwork_private_v1.aleo (Deployed on Aleo Testnet) 703 lines of Leo with 14 transitions, 8 private record types, and 6 on-chain boolean mappings. Dependencies: credits.aleo and test_usdcx_stablecoin.aleo.
✅ What's Working End-to-End On-Chain:
🔹 Integrated Shield Wallet
🔹 ALEO Payment Flow — Client posts job, selects worker, locks credits in escrow (private to public), worker submits deliverable hash, client approves, credits transfer privately to worker. Only a boolean flag is visible on-chain. No amounts, no addresses.
🔹 USDCx Stablecoin Flow — Same lifecycle but with fully private transfer_private. Zero public trace of sender, receiver, or amount. Atomic payment at job completion.
🔹 ZK Reputation System — Workers claim CompletionReceipt records to build a private ReputationRecord (score increments per job). They generate threshold proofs: "I completed 5 or more jobs" without revealing exact count or identity. The verifier receives a ThresholdProof record with only verified: true and the threshold. Uses Leo's native assert inside a ZK circuit. Not possible on any transparent chain.
🔹 Escrow with Timeout Refund
Blockchain: 14 transitions covering register_worker, post_job, cancel_job, create_agreement, deposit_escrow_aleo, commit_escrow_usdcx, submit_deliverable, complete_job_aleo, complete_job_usdcx, refund_escrow_aleo, cancel_escrow_usdcx, claim_reputation, merge_reputation, prove_threshold.
All state lives in private records. Public mappings are boolean flags only. No values or addresses ever leak.
🔐 Privacy Guarantees:
Identity: self.signer used privately, no addresses visible on-chain. Payments: ALEO uses private to public to private. USDCx uses fully private transfers. Reputation: Score in private record. Proofs reveal only that score meets a minimum. Agreements: Private records for both parties. No public link between client and worker.
🚀 Vision:
Near-term: Add USAD as third currency, weighted reputation scoring by job value, multi-threshold proofs (prove job count AND total earned in one proof), contract hardening and edge case testing.
Next: Dispute resolution with reputation-gated arbitrators, milestone-based escrow for progressive payment release, privacy-preserving worker discovery via blind matching.
Mainnet: Deploy zkwork with all improvements, complete security audit, activate 2-3% platform fee on completed escrows.
ZKWork is not a privacy layer bolted onto a marketplace. It is a marketplace that is private by construction, built on Aleo because no other chain makes this possible natively.
## Wave 3 submission
🔐 ZKWork — Wave 3 Update
🚀 Program ID: zkwork_private_v2.aleo
📝 TX: at1xqcz3gq7hdex3qyrdva4psg6722mtdd7kmll6gg7uz9apzcrwczsnvdcqk 📊 15 transitions, 8 records, 6 mappings, 3 deps, 2,068,193 variables 🌐 Live: https://zk-work.vercel.app/ 📦 video: https://youtu.be/faYXTFrsXO0
✅ Wave 3 Changes:
1️⃣ USAD Currency — Third payment option. New transitions: commit_escrow_usad, complete_job_usad, cancel_escrow_stable (merged USDCx+USAD cancel). payment_type=2u8. Full escrow lifecycle via test_usad_stablecoin.aleo transfer_private.
2️⃣ Weighted Reputation — ReputationRecord tracks total_earned. claim_reputation and merge_reputation accumulate salary from each CompletionReceipt. High-value jobs build stronger reputation.
3️⃣ Hashed Timestamps — escrow_timestamps stores BHP256 hash (field→field). Refund timeouts not readable on-chain. refund_escrow_aleo verifies hash before refund.
🔧 Fixes:
Auth Fix — No more double-click. Flow continues after authenticate(). Token Retry — Re-auth on 401 after long on-chain TX. Amount Fix — createAgreement uses job.budget not proposedRate. Loose Filter — findLatestAgreement falls back to any Agreement record.
🏗️ How It Works:
Client posts job (ALEO/USDCx/USAD). Worker applies. Client creates agreement (private records for both). Deposits escrow (ALEO locked or stablecoin signal). Worker submits deliverable hash. Client approves, payment released privately. Both get CompletionReceipt.
🛡️ Privacy: Identity private (self.signer). Payments in private records (only boolean flags public). ALEO: private→public→private. USDCx/USAD: transfer_private (zero trace). Agreements private, no link between parties. Timestamps BHP256 hashed.
⭐ Reputation: Workers claim receipts → ReputationRecord (score + total_earned). prove_threshold → ThresholdProof: "completed ≥ N jobs". Verifier sees only verified:true, never exact score or identity.
🏷️ Work Privately. Prove Publicly.
## Wave 4 submission
🔐 ZKWork — Wave 4 Update
🚀 Program: zkwork_private_v2.aleo
📝 TX: at1xqcz3gq7hdex3qyrdva4psg6722mtdd7kmll6gg7uz9apzcrwczsnvdcqk 📊 15 transitions · 8 records · 6 mappings · 3 deps · 2,068,193 variables 🌐 https://zk-work.vercel.app/
Privacy architecture: every on-chain entity is a private Leo record owned by self.caller. No mapping ever stores a raw address — all identities are hashed via BHP256::hash_to_field(address.to_field()) before any write. Agreement records are issued to both parties independently so no public mapping links client to worker. The escrow_timestamps mapping stores BHP256::hash_to_field(deadline_field), making refund deadlines unreadable by on-chain observers. refund_escrow_aleo recomputes the hash inside finalize and asserts equality against the stored value — a wrong preimage causes the transition to fail before any state change.
Payment privacy by currency: ALEO flows private → public → private. credits.aleo transfer_public_as_signer locks funds in a public escrow slot; complete_job_aleo moves them back into a private credits record owned by the worker. USDCx and USAD use transfer_private directly with no public mapping ever touched and no amount visible on-chain. commit_escrow_usad and complete_job_usad mirror the USDCx path with payment_type 2u8 gating the routing branch inside approve_and_release. cancel_escrow_stable consolidates both stablecoin cancels into one transition.
Reputation is a private record. claim_reputation consumes a CompletionReceipt and emits ReputationRecord with score and total_earned: u64. merge_reputation combines two records without revealing either value to any public mapping — only the worker's private record grows. prove_threshold executes assert(record.score >= threshold) inside the ZK circuit and emits ThresholdProof containing only verified: true and the threshold. Exact job count, accumulated earnings, and worker identity never touch a public mapping at any point.
Dispute resolution: backend POST /api/agreements/:commitment/dispute is JWT-gated. Only addresses whose BHP256 hash matches clientHash or workerHash in the DB can raise a dispute. Agreement status transitions to disputed and blocks all further escrow state changes. No disputer identity is written on-chain at any step.
Wave 4 also ships: /api/stats live endpoint returning jobs, workers, agreements, activeAgreements from DB. Full redesign across 14 pages — dark-purple , neon green , SVG icons, ZK Stack section with live stats pulled from /api/stats, Leo syntax terminal, proof lifecycle flow. Fixes: auth one-click, 401 token retry mid-TX, agreement amount from job.budget not proposedRate, findLatestAgreement fallback, PostJob JSX parse crash, CSS import order.
🏷️ Work Privately. Prove Publicly.
## Wave 5 submission
ZKWork — Private Freelance Marketplace on Aleo (Wave 5)
Program: zkwork_private_v2.aleo
TX: at1xqcz3gq7hdex3qyrdva4psg6722mtdd7kmll6gg7uz9apzcrwczsnvdcqk App: https://zk-work.vercel.app/
ZKWork is a privacy-first freelance marketplace built on Aleo where agreements, payments, and reputation are fully private by design. Every on-chain entity is a Leo record owned by self.caller, and no mapping ever stores raw addresses—identities are hashed using BHP256 before any write. Client and worker receive independent Agreement records, ensuring no public linkage between parties.
Escrow privacy is enforced through hashed deadlines. The escrow_timestamps mapping stores BHP256 hashes, and refund logic recomputes and verifies the preimage inside finalize, preventing timing disclosure and invalid state transitions.
Payment flows differ by currency. ALEO uses a private → public → private escrow cycle, while USDCx and USAD remain fully private via transfer_private with no public exposure. Stablecoin flows are unified through shared cancel and release logic with routing enforced at the contract level.
Reputation is fully private. Completion records mint ReputationRecord values, which can be merged without revealing totals. Threshold proofs allow workers to prove minimum reputation using zero-knowledge without exposing score, earnings, or identity.
Dispute handling is enforced off-chain via a secure backend. Only authorized participants (validated through hashed identity checks) can raise disputes, which lock agreements and prevent further escrow actions.
Wave 5 introduces a redesigned interface, live system stats, improved UX flows, and multiple reliability fixes across authentication, transaction handling, and agreement logic. The platform now includes a modern UI system, proof lifecycle visualization, and real-time data integration.
Improvements based on feedback include confirmed testnet deployment with recorded transaction hashes, and a clear roadmap for dispute resolution enhancements and milestone-based payment releases. The triple stablecoin integration (ALEO, USDCx, USAD) and continuous bug-fix iterations reflect active development of a production-ready freelance protocol.
ZKWork delivers a complete zero-knowledge work marketplace with private agreements, secure escrow, verifiable reputation, and a strong foundation for scalable, trustless collaboration.
Prizes
- Wave 5 grant · 178 USDT
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





