Midnight Mint

Mint public or private tokens on Midnight, with the privacy choice made per token.

Repo

About

## Wave 2 submission

Midnight Mint lets anyone create a token and choose, per token, whether it lives on Midnight's public ledger or as a private Zswap coin that only the holder can see. Only a token's creator can mint more, proved with a private creator key.

Demo: https://youtu.be/N8Idu_uSL-8

Live (Preview): https://mint.midnightexplorer.com Code (Apache-2.0): https://github.com/TranHuyHiep/midnight-mint-nft https://preview.midnightexplorer.com/contracts/9d632c6a863b4df713397e4eb96bda4cc596a27d3643f9ffc860f0611e981c67

Everything below was built during Wave 2 (first commit Oct 13).

Compact contract (token.compact, Compact 0.31.1) - mint: mintUnshieldedToken to the caller's address. mintShielded: mintShieldedToken to ownPublicKey() with a fresh nonce; recipient never published, creator left empty. - Private state: witness creatorSecret() reads a creator key kept only in the user's browser. The first mint stores owner = persistentHash(tag, color, secret); later mints must reproduce it in the proof, so only the creator can mint more, even for anonymous shielded tokens. Salting with the color keeps one creator's tokens unlinkable. - Every public value goes through disclose(). - 7 simulator tests pass; both circuits (with witness) proven on the proof server. - End-to-end on Preview: creator mints a shielded token and mints more, another key is refused with "Only the creator of this token can mint more of it", and the secret appears nowhere in contract state. - First contract (before private state) holds 14 transactions from early users: 11 tokens, 28.9K units, 9 of 13 mints shielded.

dApp

- Any DApp Connector API v4 wallet; network check; session dropped if the wallet locks, switches network or revokes the site. - Unshielded/Shielded switch, progress overlay driven by the real proving and wallet stages, creator key backup/restore, ownership shown before minting. - Token list, statistics and a total-minted-over-time chart decoded from the public ledger and the indexer's contractActions stream, no wallet needed. - Preview/Preprod switch; Preprod through a server-side Blockfrost proxy. - Clear messages for locked wallets, wrong network, declined requests, timeouts and node rejections.

Wallet Midnight (Chrome MV3 extension)

- DApp Connector API 4.0.1 on the Midnight Wallet SDK in an offscreen engine. - NIGHT, shielded/unshielded tokens, DUST; several wallets; seed under PBKDF2 (600k) + AES-256-GCM; signed-checkpoint fast sync; per-site permissions with optional password-less approval. - 54 unit tests + Chromium end-to-end checks.

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?

Not checked yet.

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.