PrivaBid

PrivaBid encrypted sealed-bid auctions on Fhenix FHE. No front-running. Just math.

About

## Wave 1 submission

Wave 1 focused on architectural foundation and responding to judge feedback to explore multiple auction types and more complex FHE interactions. Smart Contract — Multi-Mode PrivaBid.sol Expanded from a single sealed-bid contract into a four-mode FHE auction platform: Mode 0 — FIRST_PRICE: Highest bid wins. Core ops: FHE.asEuint64, FHE.gt, FHE.max, FHE.select. Mode 1 — VICKREY: Highest bid wins but pays the second-highest amount. Tracks two encrypted values simultaneously using nested FHE.select — a more complex FHE pattern than Mode 0. Mode 2 — DUTCH: Bidders submit encrypted price thresholds. Uses FHE.lte to check if the descending price meets a sealed floor — without revealing any threshold. Impossible on transparent chains. Mode 3 — REVERSE: Sellers submit encrypted asks, buyer picks the lowest. Uses FHE.min and FHE.lt. Targets institutional procurement where sealed bids are legally required. Documentation README.md — full overview, four auction modes, FHE primitives table, architecture diagram, roadmap. ARCHITECTURE.md — deep technical doc covering all four modes, nested FHE.select pattern, Threshold Network MPC, privacy guarantees, security model. FHE_EXPLAINER.md — plain-English explainer for all four modes using the "magic safe" analogy. Interactive Prototype React prototype demonstrating all five auction phases — deploy, bidding, close, Threshold Network decryption, and winner reveal — with smart contract code, TypeScript integration, and full docs in a tabbed interface. Live Deployment — Arbitrum Sepolia Contract deployed and confirmed. Transaction logs show AuctionCreated event and two trivialEncrypt calls to the Fhenix CoFHE coprocessor confirming FHE state initialised correctly on-chain. Contract: https://sepolia.arbiscan.io/address/0x83F0D8049730e4AD6b4b4586f322c85CA9D7Ca3a Tx: https://sepolia.arbiscan.io/tx/0xc6a0db154cccc1281064e27e8a6f194c3d2fd7852393f6278ecccb27b830aaca Deliverables GitHub: https://github.com/Emmy123222/PrivaBid Contract: contracts/PrivaBid.sol Docs: README.md, ARCHITECTURE.md, FHE_EXPLAINER.md

## Wave 2 submission

Wave 2 Multi-Mode Contracts, Live Frontend & Expanded FHE Architecture Following judge feedback to go deeper on FHE implementations, we expanded PrivaBid from a single sealed-bid contract into a full multi-mode encrypted auction platform with three live deployed contracts and a working frontend. Smart Contracts All Live on Arbitrum Sepolia PrivaBid (First-Price) — highest bid wins, pays own amount. Core FHE ops: FHE.gt, FHE.max, FHE.select. https://sepolia.arbiscan.io/address/0x83F0D8049730e4AD6b4b4586f322c85CA9D7Ca3a PrivaBidVickrey highest bid wins but pays the second-highest amount. Tracks two encrypted values simultaneously using nested FHE.select. Requires two separate Threshold Network proofs at reveal one for the winner, one for the payment amount. https://sepolia.arbiscan.io/address/0x471991CDCD48d847ea31a2e87Ba743f41F43c3FD PrivaBidDutch — bidders submit encrypted price thresholds. Contract checks FHE.lte(currentPrice, encryptedThreshold) as price descends. Winner matched automatically without revealing any threshold. This auction type is impossible on transparent chains. https://sepolia.arbiscan.io/address/0xd34b656D608699136404B193F20f8282a3B22028 Frontend — Live & Accessible Full React + TypeScript frontend deployed on Vercel. Anyone can connect MetaMask, auto-switch to Arbitrum Sepolia, and place a real encrypted bid against any of the three live contracts right now. Live App: https://priva-bid-xsn1.vercel.app/ What works end to end:

Wallet connection with automatic network switching to Arbitrum Sepolia Live auction state reading from all three contracts Real bid submission through MetaMask Bid feed showing wallet addresses with amounts as 🔒 Encrypted Countdown timer, total bids, auction status per mode

GitHub: https://github.com/Emmy123222/PrivaBid

## Wave 3 submission

Wave 3 delivered the complete auction lifecycle end to end, two new contracts, and a fully interactive frontend judges can use right now. New Smart Contracts Deployed PrivaBidReverse reverse/procurement auction where sellers submit encrypted asks and the buyer wins the lowest automatically. Uses FHE.lt and FHE.min opposite direction of the sealed-bid contracts. No vendor ever sees a competing ask. Targets the institutional procurement market where sealed bids are legally required. PrivaBidFactory deploys any of the four auction modes with one transaction: createAuction(mode, itemName, reservePrice, duration). Stores all deployed auctions in an on-chain registry. Anyone can spin up their own encrypted auction without touching the codebase. Winner Reveal Flow Now Live Full decrypt-with-proof pattern wired up on the frontend. After close: frontend fetches encrypted handles → sends to Threshold Network via @cofhe/sdk → receives (decryptedValue, signature) → submits proof on-chain via revealWinner() → FHE.publishDecryptResult() verifies signature on-chain → winner card appears with address, amount, and "All losing bids permanently sealed." Works across all four contracts. Vickrey submits two separate proofs winner and payment amount. Dutch Price Tracker Live descending price chart fetching getCurrentDutchPrice() every 5 seconds. Shows price history, blocks until next drop, and highlights when a threshold match is detected. Create Auction UI Anyone deploys a new auction from the frontend via the factory. Select mode, fill details, confirm in MetaMask live in one transaction. All Contracts Arbitrum Sepolia: 🥇 First-Price: https://sepolia.arbiscan.io/address/0x83F0D8049730e4AD6b4b4586f322c85CA9D7Ca3a 🏆 Vickrey: https://sepolia.arbiscan.io/address/0x471991CDCD48d847ea31a2e87Ba743f41F43c3FD 📉 Dutch: https://sepolia.arbiscan.io/address/0xd34b656D608699136404B193F20f8282a3B22028 🔄 Reverse: https://sepolia.arbiscan.io/address/0x291DD038A12eD7eaaB383751cA4841e6D1B3434b 🏭 Factory: https://sepolia.arbiscan.io/address/0x16027C8826BFcef3Ad71C8be56b49eC6BE1e0054 Live App: https://priva-bid-xsn1.vercel.app/ GitHub: https://github.com/Emmy123222/PrivaBid

## Wave 4 submission

Wave 4 — PrivaBid | Live app: https://priva-bid-xsn1.vercel.app/ | Repo: https://github.com/Emmy123222/PrivaBid 1. Reverse / procurement (Mode 4) Sellers submit encrypted asks; the contract finds the lowest with FHE.min() / FHE.lt() without exposing competitor prices. UI: /reverse-auction (supports ?address= for factory auctions). 2. Factory V2 + PrivaBidV2 (encrypted reserve) PrivaBidV2 supports all four modes with optional sealed reserve/budget: encryptedReserve is hidden from bidders; at close FHE.gte(highestBid, encryptedReserve) or FHE.lte(lowestAsk, encryptedReserve); at reveal a Threshold proof on getReserveMetHandle() must equal 1 or reveal reverts. PrivaBidFactoryV2 deploys any mode in one tx. Factory V2: 0x7ED138dE78f24fEde79eB54F6DddEA38D3db2339 Judge demo (V2, first-price, encrypted reserve): 0xf96F8611Fa57d75398eaa4e410e953586acf6533 Demo: https://priva-bid-xsn1.vercel.app/auction/first-price?address=0xf96F8611Fa57d75398eaa4e410e953586acf6533 Create: https://priva-bid-xsn1.vercel.app/create — Encrypted reserve (V2) checkbox 3. Auction dashboard https://priva-bid-xsn1.vercel.app/dashboard — all factory auctions (V1+V2): status, bid count, time left, winner. “My participation” scans BidPlaced / ThresholdSet / AskSubmitted across all four modes for the connected wallet. 4. Privara settlement @reineira-os/sdk: after Threshold reveal, “Settle via Privara” funds confidential USDC escrow (testnet). Vickrey uses second-price when applicable. 5. CoFHE / UX MySealedAmount (decryptForView + permits). Reveal fixes: multi-mode entrypoints, Dutch authorizeDutchWinnerReveal, on-chain handles for publishDecryptResult, ~90s post-close ACL retry. EIP-1559 gas buffering. Factory event parsing + on-chain listing on Home. 6. Redeployed demos First-price 0xCD105F5853abac7a95a1BfaF56d673E32aC1D25C | Reverse 0xFa038951671e0bE59F2acA05Ca52e37bc6081Ffc | Dutch 0xab016ADDf7097D77652C712310c7a24F8EAFC913 Judge E2E: Connect wallet → bid on demo → close → wait ~90s → Reveal (Threshold + reserve proof) → Privara settle. Arbiscan: https://sepolia.arbiscan.io/address/0x7ED138dE78f24fEde79eB54F6DddEA38D3db2339 | https://sepolia.arbiscan.io/address/0xf96F8611Fa57d75398eaa4e410e953586acf6533

## Wave 5 submission

PrivaBid is a multi-mode FHE auction platform on Fhenix CoFHE, deployed and demo-ready on Arbitrum Sepolia (testnet only; no mainnet deploy due to funding).

WAVE 5 DELIVERABLES

Mainnet prep (documentation only): Checklist for future mainnet—Fhenix readiness, gas/FHE costs, address migration, multisig deployer, USDC deposits. No mainnet deployment. https://github.com/Emmy123222/PrivaBid/blob/main/docs/MAINNET_PREP.md

FHE ACL security audit: Self-assessment of per-mode ACL (allowThis, allowSender, allowPublic on winner handles only), threat model, findings, and why losing bids stay sealed. https://github.com/Emmy123222/PrivaBid/blob/main/SECURITY_AUDIT.md

@privabid/sdk: TypeScript package for integrators—Factory V2 createAuction, Sepolia addresses, ABIs, USDC helpers, CoFHE decryptForTx → publishDecryptResult notes. https://github.com/Emmy123222/PrivaBid/tree/main/privabid-sdk https://github.com/Emmy123222/PrivaBid/blob/main/docs/INTEGRATION.md

Ecosystem outreach: Pitch, integration targets (NFT/DAO/procurement), demo script, limitations. https://github.com/Emmy123222/PrivaBid/blob/main/docs/ECOSYSTEM_OUTREACH.md

Platform polish: address registry, reverse auction fixes, dashboard, encrypted-reserve demo, MIT license, monorepo (contracts + frontend + SDK).

LIVE DEMO https://github.com/Emmy123222/PrivaBid

Run: cd privabid-frontend && npm install && npm run dev — MetaMask on Arbitrum Sepolia (421614).

On-chain: First-price: https://sepolia.arbiscan.io/address/0xCD105F5853abac7a95a1BfaF56d673E32aC1D25C Vickrey: https://sepolia.arbiscan.io/address/0x471991CDCD48d847ea31a2e87Ba743f41F43c3FD Dutch: https://sepolia.arbiscan.io/address/0xab016ADDf7097D77652C712310c7a24F8EAFC913 Reverse: https://sepolia.arbiscan.io/address/0xFa038951671e0bE59F2acA05Ca52e37bc6081Ffc Factory V2: https://sepolia.arbiscan.io/address/0x7ED138dE78f24fEde79eB54F6DddEA38D3db2339

Cumulative (Waves 1–4): Four FHE auction modes—first-price, Vickrey, Dutch thresholds, reverse (FHE.min). Flow: bid → FHE compare → close → Threshold decrypt → on-chain reveal. Optional Privara settlement.

Judge demo: Home → mode or Create Auction → bid → Close → Reveal → Privara settle.

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.