example-private-reserve-auction-dapp

Installation
SKILL.md

Midnight Network Private Reserve Auction DApp

A private reserve auction contract lets a seller hide the reserve price on-chain while bidders place public bids with private identities. The winner crosses the privacy boundary when claiming the item via unshielded NIGHT payment.

Runnable template: Run npm install && npm run compact && npm run sync:assets && npm run dev after installing the 1AM wallet.

What this skill produces:

  • contract/private-reserve-auction.compact (no witnesses, Map, Counter) + compile scripts
  • app/auction/ — Next.js client UI (seller deploy/close/reveal/claim + bidder place bid/claim item)
  • lib/midnight.ts — wallet session + patched indexer provider
  • lib/auction.ts — deploy, bid, closeAuction, revealPrice, claimItem, claimProceeds, ledger decode
  • lib/address.ts — Bech32 unshielded address → { bytes: Uint8Array } for UserAddress circuit args
  • lib/secret.ts — generate/store 32-byte DApp secrets in localStorage
  • public/zk/private-reserve-auction/ — ZK proving assets synced from contract build
Installs
104
GitHub Stars
16
First Seen
Jul 12, 2026
example-private-reserve-auction-dapp — kali-decoder/midnight-skills