About
## Wave 1 submission
- Problem definition: confidential negotiation on transparent chains - Privacy model design: what's encrypted, what's public, when disclosure happens - FHE operation selection: `gte`, `add`, `div`, `select`, `decrypt` — 6 operations - `BlindDeal.sol` — working encrypted negotiation contract (~215 lines) - ACL-based access control: only matched parties can unseal the deal price - Deal deadlines: auto-expiry for unresponsive counterparties - Per-user deal tracking: `getUserDeals(address)` for frontend discoverability - Hardhat deploy + interaction tasks (deploy, create-deal, submit-price, finalize-deal) - 22/22 test coverage (creation, submission, match, no-match, cancel, deadline expiry) - Deployed to Arbitrum Sepolia and Ethereum Sepolia - Full documentation: architecture, FHE deep dive, privacy model, roadmap
## Wave 2 submission
- React frontend with `@cofhe/react` hooks + wagmi wallet connection - Full deal lifecycle UI: create → submit encrypted prices → finalize → cancel - FHE price unsealing via `cofheClient.decryptForView()` - `BlindDealResolver.sol` — condition contract for Privara escrow - Privara SDK integration (`@reineira-os/sdk`): create → fund → redeem - Server-side API routes for FHE-encrypted escrow operations - End-to-end escrow lifecycle verified on Arbitrum Sepolia
## Wave 3 submission
Video demo upgrade: https://youtu.be/4mb3v79OPbU Live url: https://blind-deal.vercel.app/
The upgrade:
- FHE Engine Upgrade — Migrated to @cofhe/sdk, @cofhe/hardhat-plugin v0.5.2, @reineira-os/sdk v0.3.1, redeploy contracts for both Arbitrum Sepolia and Ethereum Sepolia - Smart contract upgrade — Added Expired state, createdAt timestamp, max deadline cap (365 days), DealExpired event, gas optimization - Telegram bot for deal notifications + share links (/status, /share, /subscribe, /unsubscribe) - Multi-deal marketplace view — Browse all open deals alongside "My Deals" - Deal filters — All / Open / Closed tabs on My Deals - Live countdown timer — Shows remaining time on open deals - Share improvements — Copy link + Telegram share button on deal detail - Address validation — CreateDeal form validates seller address format and self-deal prevention- - Contract verification tasks — verify-blinddeal and verify-resolver Hardhat tasks
## Wave 4 submission
Live upgrade demo: https://youtu.be/NnB8xvzYX90 Live url: https://blind-deal.vercel.app/
- Open marketplace deals — createDeal(address(0)) → DealType.Open, first-come-first-served via joinDeal()
- Open deal UI — Seller card shows "Waiting for seller...", "Join as Seller" button, activity tags
- Marketplace view — Search/filter by state, search by deal ID, "Load More" pagination, "Open for sellers" badge
- Telegram bot — /list, /status, /create, /submit, /share, /subscribe, event polling every 15s
- Telegram deep-links — ?action=create, ?deal=X&action=submit, ?action=mcp from App.tsx
- MCP Server — HTTP transport, 6 tools (get_deal, list_deals, get_user_deals, get_events, subscribe_deal, create_deal), 6 resources (blinddeal://contract/*, etc.)
- MCP page — Interactive test buttons, Claude Desktop config guide, tool/resource listings
- AI Agent task — npx hardhat agent --price 500 --network arb-sepolia discovers Open deals, joins, submits FHE price
## Wave 5 submission
Upgrade demo video: https://youtu.be/7N5Vi77fBew Live url: https://blind-deal.vercel.app/
- Contracts updated.
New contract: BlindDealEscrow.sol.
Flow:
> Create → Buyer calls createEscrow(dealId) when deal is Matched > Fund → Buyer sends native ETH via fundEscrow(escrowId) > Request Release → Seller calls requestRelease(escrowId) > Approve / Reject → Buyer calls approveRelease() or rejectRelease() (rejection auto-opens dispute) > Redeem → Seller calls redeem(escrowId) after approval
Dispute & Timeout Protections:
- Either party can openDispute(escrowId, reason) from Funded or ReleaseRequested state - Designated arbiter resolves via resolveDispute(escrowId, releaseToSeller, resolution) - Seller can forceRelease() if buyer ignores request for 7 days (APPROVAL_WINDOW) - Either party can forceResolveDispute() (auto-refund to buyer) if arbiter is unresponsive for 14 days (DISPUTE_RESOLUTION_WINDOW) - Buyer can refundOnFailedDeal(escrowId) if deal becomes NoMatch / Cancelled / Expired
Arbiter governance: proposeArbiter → 2-day delay → confirmArbiterChange prevents instant arbiter takeover.
- Dual Settlement: BlindDealEscrow + Reineira Confidential Escrow
Buyers now choose between two settlement paths on match:
Simple Settlement (BlindDealEscrow):
- Native ETH escrow on-chain - Buyer funds directly → approves release → seller redeems - Dispute + arbiter resolution with timeouts
Confidential Settlement (ReineiraOS):
- @reineira-os/sdk v0.3.1 with FHE-encrypted ConfUSDC - EscrowBuilder with BlindDealResolver as condition gate - Auto-redeem when deal = Matched (isConditionMet) - Optional insurance coverage (POST /api/escrow/insurance) - Server-side create + fund (FHE encryption), client-side linkEscrow + redeem
Key changes:
- Fund amount: switched from encrypted fund to plain fundFrom (testnet FHERC20 limitation)
- Landing Page: Protocol explanation, how-it-works steps, feature grid, CTA to create deal.
- Marketplace with Opponent Reputation
Enhanced marketplace view:
- Opponent reputation badge: Each deal card queries getUserDeals for the counterparty and displays their total deal count as a reputation indicator - Color-coded badges: green (≥5 deals), amber (2-4 deals), slate (1 deal) - Batch-queried via useReadContracts for performance
- Contract Security Hardening (v6)
Client consensus finalization: Replaced single-party clientFinalizeDeal with a 2-of-2 consensus mechanism to prevent griefing: - proposeClientFinalize(dealId, matched) — stores first party's decrypted result - clientFinalizeDeal(dealId, matched) — requires counterparty to confirm the same result - expireClientProposal(dealId) — proposer can withdraw; anyone can expire after 1 hour
Input hardening:
- MAX_DESCRIPTION_LENGTH = 280 prevents gas griefing - New custom errors for all failure modes
add SECURITY.md: Trust model and attack surface analysis for the consensus mechanism.
Prizes
- Wave 5 grant · 750 USDC
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





