About
## Wave 1 submission
# Wave 1 — Ideation & Planning
## Problem
Current freelance marketplaces face three core issues:
- **Undercutting**: Freelancers compete by lowering prices after seeing others’ bids
- **Data leakage**: Bid values, deal terms, and payments are publicly exposed
- **Lack of trustless privacy**:
- Web2 requires trusting centralized platforms
- Web3 exposes all data by default
These limitations make existing systems unsuitable for fair and confidential professional work.
---
## Solution
**Shadowlancer** is a private freelance marketplace built on Fhenix.
It introduces:
- Encrypted bidding (no visibility between competitors)
- Private computation (selection without revealing data)
- Selective disclosure (only necessary information is revealed)
This enables fair competition and confidential transactions without relying on a centralized platform.
---
## Core Flow
1. Client posts a job
2. Freelancers submit encrypted bids 3. System evaluates bids using encrypted computation 4. Winner is selected without revealing other bids 5. Payment is executed without exposing sensitive data
---
## Technical Approach
- Fhenix for encrypted data on-chain
- CoFHE for private computation - Smart contracts for job and escrow logic - Frontend handles encryption and decryption
## Wave 2 submission
## The Core Problem We Solved
> How do you pick the lowest bid from a set of numbers — without knowing what any of the numbers are?
This is impossible in traditional computing. With FHE, it is not.
```
Traditional auction: Shadowlancer: Bid A = 400 ← visible Bid A = Enc(400) ← hidden Bid B = 450 ← visible Bid B = Enc(450) ← hidden Bid C = 600 ← visible Bid C = Enc(600) ← hidden Max = 500 ← visible Max = Enc(500) ← hidden
Anyone can see who System finds winner bid what and why without seeing anything someone won. Winner: 0xBidderA ```
---
## What Was Built (Wave 1+2)
### Smart Contract: `PrivateBidMarket.sol`
A fully on-chain sealed-bid auction contract using Fhenix CoFHE.
**Features:**
- Client posts a job with an **encrypted max budget** — the ceiling is private - Freelancers submit **encrypted bids** — amounts are never exposed - Contract uses FHE operations to find the **lowest bid within budget** — zero decryption during selection - Only the **winner's address** is revealed — not any bid amount - If all bids exceed the budget, a `NoBidsWithinBudget` event fires — without revealing by how much
### Frontend: Next.js Web App
- Job creation form with encrypted budget input - Uses `cofhejs` SDK to encrypt values client-side before sending on-chain - Wallet connect with wagmi + viem - Reads contract state and displays job status ---
### What Is Leaked vs What Stays Private
| Information | Leaked? |
|---|---| | Bid amounts (e.g. 400, 450, 600) | Never | | Max budget (e.g. 500) | Never | | Whether a bid exceeded the budget | Never | | Number of bids | Yes (count only) | | Winner's address | Yes (by design — this is the output) | | Winner's bid amount | Never | | Losing bid amounts | Never, forever | ### State Machine
```
createJob() │ [ Open ] ←── submitBid() × N │ closeBidding() ←── FHE: find encrypted min, create ebool handles │ [ Evaluating ] ←── Fhenix nodes decrypt isWinner[] off-chain │ publishWinner() │ ┌──┴──────────┐ [ Settled ] [ NoBids ] │ getWinner() → 0xWinnerAddress ```
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





