About
## Wave 1 submission
Harbor Protocol — Wave 1 Update
Foundation & MVP Complete
Live Demo: https://harbor-protocol.vercel.app
GitHub: https://github.com/chandanjha34/Harbor
Main Contract: 0x18b56F171bB3011274e695791cc8CA74a653d0FC Mock USDC: 0x601F2C86a13940f675E5E3F6DBc941A8A222F3E4 Demo Video: https://youtu.be/ITbmj1SjEmI
Project Overview
Harbor Protocol introduces a claim-based escrow system with optional confidential state powered by Fhenix CoFHE, enabling programmable payments that are secure, verifiable, and privacy-aware.
Instead of sending funds directly, payments are locked into escrow and released only when predefined claim conditions are satisfied — creating trustless settlement without intermediaries.
Core Innovation: Programmable Claims
Harbor records immutable payout terms during claim creation:
Creator address
Token type (ETH or ERC20) Locked amount Optional authorized receiver Expiry timestamp Lifecycle status flags
These parameters cannot be modified after deployment, ensuring tamper-proof agreements.
Privacy-Ready Architecture (Fhenix)
Harbor maintains dual state layers:
Public State
Transparent settlement logic
Claim lifecycle verification
Confidential State
Encrypted amount (euint128)
Encrypted receiver (eaddress)
Access is permissioned using FHE controls:
Contract access
Creator access Receiver access Temporary viewing permissions via allowPrivateClaimView
Sensitive payment details remain private while settlement remains verifiable.
Secure Claim Lifecycle
Each claim follows strict one-way transitions:
Prevents double claiming
Supports cancellation safeguards Enforces expiry validation Restricts unauthorized receivers
All violations trigger contract-level reverts, guaranteeing deterministic execution.
Smart Contract Architecture
Contract: RelixEscrow.sol (Solidity 0.8.28 — Cancun EVM)
Core Structures
Claim: creator, receiver, token, amount, expiry, status ConfidentialClaim: encrypted mirrors for private access
Key Functions
createClaimETH
createClaimERC20 claim cancelClaim allowPrivateClaimView Multi-Asset Escrow Settlement
Supports:
Native ETH escrow
ERC20 token escrow (mUSDC test flow)
Settlement is fully non-custodial and enforced on-chain.
Frontend & Confidential UX
Built with Next.js and RainbowKit, the client integrates:
Contract interaction hooks
Confidential decryption flows Event-based claim ID extraction Deployment safety checks
Private data can only be decrypted after explicit permission grants.
Tech Stack
Network: Ethereum Sepolia
Confidential Layer: Fhenix CoFHE Contracts: Solidity, Hardhat Frontend: Next.js 14, React 18, Tailwind Web3: viem, wagmi, RainbowKit Optional Rail: Reineira SDK
Harbor Protocol transforms payments into programmable, privacy-aware claims — enabling secure redemption, conditional payouts, and trustless settlement for the next generation of Web3 applications.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





