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 scriptsapp/auction/— Next.js client UI (seller deploy/close/reveal/claim + bidder place bid/claim item)lib/midnight.ts— wallet session + patched indexer providerlib/auction.ts— deploy,bid,closeAuction,revealPrice,claimItem,claimProceeds, ledger decodelib/address.ts— Bech32 unshielded address →{ bytes: Uint8Array }forUserAddresscircuit argslib/secret.ts— generate/store 32-byte DApp secrets inlocalStoragepublic/zk/private-reserve-auction/— ZK proving assets synced from contract build