Aloe

Privacy-preserving sealed-bid auction primitive on Aleo with zero-knowledge proofs.

About

## Wave 1 submission

Wave 1: Core Auction Infrastructure

This wave is focused on building the core auction infrastructure: deploying the smart contract with privacy-preserving sealed-bid functionality (commit phase) as well as creating a frontend for users to create auctions and place hidden bids on the Aleo testnet.

Live Deployed URL: https://aloe-psi.vercel.app/

*Smart Contract (zkauction.aleo)*

Deployed on Aleo Testnet Beta - Program ID: zkauction.aleo - Deployment TX: at12gwtpwtm39gma86glfr0t4ylr3w8zxyh7y73hwdk2dcqr565eczstgyu73

Implemented Transitions:

1. create_auction - Creates a new sealed-bid auction - Parameters: auction_id, item_id, min_bid, commit_duration, reveal_duration - Stores auction in on-chain mapping with calculated deadlines - Initializes bid_count and deposit tracking

  • place_bid - Places a private sealed bid
  • Implements commit-reveal scheme using BHP256 hash
  • Bid amount and salt remain private (hidden in ZK proof)
  • Returns private BidCommitment record to bidder
  • Prevents duplicate commitments on-chain

Data Structures:

- Auction struct: auctioneer, item_id, min_bid, deadlines, status, winner, winning_bid - BidCommitment record: owner, auction_id, commitment hash, bid_amount, salt, deposit - Mappings: auctions, bid_count, commitments, auction_deposits

*Frontend Application (Next.js)*

Live URL: https://aloe-psi.vercel.app/

Features:

- 3D animated landing page with Three.js hero section - Dashboard for browsing all auctions - Create Auction form with duration configuration - Place Bid dialog with sealed bid submission - Leo Wallet integration via @demox-labs/aleo-wallet-adapter - Local bid storage for future reveal phase - Responsive design with shadcn/ui + Tailwind CSS

What Works End-to-End

1. Connect Leo Wallet 2. Create auction → transaction confirmed on-chain 3. View auctions in dashboard 4. Place sealed bid → commitment stored on-chain (bid amount hidden)

## Wave 2 submission

Wave 2: Privacy Fix + Complete Auction Lifecycle

Fixed a critical privacy vulnerability in bidding and completed the full auction lifecycle — reveal, settle, refund, cancel — all verified on Aleo testnet with real credits.

Live Deployed URL: https://aloe-psi.vercel.app/ Demo Video Walkthrough: https://youtu.be/QuowwH0gXTw

Smart Contract (aloe_auction_v4.aleo)

- Program ID: aloe_auction_v4.aleo - Depends on: credits.aleo (native Aleo credits program)

Privacy Fix:

- Replaced transfer_public_as_signer with transfer_private_to_public in place_bid - Bidders pass a private credits record — sender address hidden on-chain - On-chain trace only shows credits arriving at the program, not who sent them

New Transitions:

1. reveal_bid — record-free flow, recomputes BHP256 hash on-chain to verify commitment, updates highest_bid/highest_bidder mappings, enforced timing between deadlines 2. settle_auction — transfers winning bid to auctioneer via credits.aleo/transfer_public, callable by anyone after reveal_deadline 3. claim_refund — record-free, verifies caller is not winner, prevents double-claims, unrevealed bids forfeit deposits 4. cancel_auction — auctioneer-only, requires zero bids

New Mappings: revealed_count, highest_bid, highest_bidder, refund_claimed, has_revealed, revealed_deposits, revealed_bidder

Shield Wallet + credits.aleo Integration: - Shield Wallet supported via @provablehq/aleo-wallet-adaptor-shield alongside Leo Wallet - All value transfers use native credits.aleo: transfer_private_to_public (deposits, hides sender), transfer_public (settlement + refunds) - No mock tokens — real testnet credits locked, transferred, and refunded

Frontend (Next.js)

New Components: - RevealBidDialog — live on-chain timing, auto salt recovery, pre-flight eligibility check - SettleAuctionButton / ClaimRefundButton — pre-flight checks prevent wasted gas - AuctionDetailDialog — phase-aware action buttons - AuctionStatusBadge / AuctionTimer — real on-chain deadlines - Bid indicator badges: "Bid Placed", "Reveal Required", "Winner", "Bid Revealed", "Bid Forfeited" - Shield Credits button in wallet dropdown for public-to-private conversion

What Works End-to-End:

1. Connect Leo Wallet or Shield Wallet 2. Shield credits (public → private) for bidding 3. Create auction → deadlines set from block height 4. Place sealed bid with private credits → bidder address hidden 5. Reveal bid → contract verifies BHP256 hash 6. Settle auction → winning bid transferred to auctioneer 7. Claim refund as non-winner → deposit returned 8. Full flow verified on testnet: create, bid, reveal, settle all ACCEPTED

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.