About
## Wave 1 submission
In this first wave, we focused on designing and deploying the core privacy-first escrow protocol for Veilance on Aleo testnet. The goal of this phase was to validate the core architecture, contract logic, and end-to-end interaction flow between the frontend, off-chain indexing, and Aleo’s private execution model.
Smart Contract Deployment
Designed and deployed the freelancing_platform.aleo program to Aleo testnet. Implemented a record-based architecture using Aleo’s privacy model instead of global mutable state.
Core records include:
Client – manages private escrow balances and completion stats Freelancer – tracks earned balance, skills, and completed projects Escrow – handles milestone-based escrow with private amounts, approvals, and state transitions
Implemented transitions for:
Client and freelancer registration Funding and escrow creation Milestone submission and approval Incremental milestone-based fund release
Testnet Explorer (Deployed Contract):
👉 https://testnet.explorer.provable.com/program/freelancing_platform.aleo
Milestone-Based Escrow Logic
Escrows are created with a fixed milestone structure (array-based, Aleo-compatible). Each milestone requires: Freelancer submission Client approval Explicit release by the client Funds are released incrementally per milestone, ensuring trustless payment without exposing amounts publicly. Escrow completion is determined programmatically once all milestones are released.
Frontend + Supabase Integration (Architecture-Level) Designed the frontend flow (Next.js) to interact directly with Aleo wallets for all state-changing actions. Integrated Supabase as an off-chain indexing and read layer. No private data, balances, or record contents are stored off-chain. Supabase mirrors on-chain activity strictly for UX and discoverability.
📄 Documentation
A complete README is included in the repository A Notion document is also attached to the repo, detailing design rationale, learnings, and future roadmap.
## Wave 2 submission
This wave focused on resolving architectural limitations, new functionalities implementations, implementing real credit escrows, and hardening the protocol for concurrent usage.
- Real Credit Escrow Implementation
Previous Issue: Escrow did not lock actual $ALEO funds. Upgrade: All payments now use native Aleo credits Funds are programmatically locked in escrow at contract level Milestone approval triggers direct credit transfer to freelancer Added `withdraw(client)` for reclaiming unused escrow End-to-end transaction testing completed
This ensures correct value custody, atomic release, and real economic execution.
- Record Ownership Compliance
Previous Issue: Client was incorrectly required to submit a Freelancer record during `approve_and_release`, violating Aleo record ownership rules.
Fix:
Re-architected transition inputs to respect record ownership boundaries Proper separation of client-controlled and freelancer-controlled records Validated execution paths under Aleo’s private record model The protocol now fully aligns with Aleo’s UTXO-style record semantics.
- Collision-Resistant Escrow Architecture Problem: Single-Escrow Limitation
Earlier escrow ID generation risked collisions when: Same client hired same freelancer multiple times Multiple concurrent projects were active
Solution: Escrow IDs are now generated using a collision-resistant Poseidon2 hash incorporating multi-Variables.
Result:
Deterministic yet unique escrow IDs No overwriting of concurrent escrows Supports multi-project and multi-freelancer workflows Production-ready scalability
- Full Lifecycle Protocol Coverage
The protocol now supports: Freelancer registration with skill validation Client project creation with structured validation Direct hire workflow Milestone submission Milestone approval + atomic credit release Client withdrawal of unspent funds Contract redeployment with improved hashing logic All flows are tested end-to-end with successful state transitions.
- Private Execution → Public UX Bridge
We implemented a custom frontend extraction layer that: Parses transition future arguments Extracts generated escrow IDs Synchronizes with Supabase Provides real-time transaction polling This bridges Aleo’s private execution model with a consistent user-facing dashboard without leaking sensitive state.
This wave upgrades Veilance from a functional demo into a scalable, collision-resistant, real-fund escrow protocol built natively on Aleo’s private execution model.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





