midnightskill
Skill18 starsChanged 16 days agoMITView on GitHub
Set of skills for developing/building apps on Midnight Network. Always start with this skill to pick the right midnight skill for the task.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- tusharpamnani/Midnight-Skillsedited, first seen May 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- tusharpamnani/Midnight-Skills★ 176% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 1am-walletSkill
- android-example-votingSkill
- ankr-midnightSkill
- compactSkill
- dynamic-midnight-walletSkill
- example-counterSkill
- example-hello-worldSkill
- example-leaderboard-dappSkill
- example-locker-dappSkill
- example-passport-dappSkill
- example-payment-dappSkill
- example-private-party-dappSkill
- example-private-reserve-auction-dappSkill
- example-zk-loan-applicationSkill
- gsap-coreSkill
- gsap-utilsSkill
- indexerSkill
- midnight-consensusSkill
- midnight-cryptographySkill
- midnight-environment-setupSkill
- midnight-jsSkill
- midnight-onchain-logicSkill
- midnight-p2p-networkingSkill
- midnight-passportSkill
- midnight-rpcSkill
- midnight-storageSkill
- midnight-transactionsSkill
- multinetworkSkill
- nftSkill
- react-wallet-connectorSkill
- midnight-securitySkill
- testingSkill
- token-transfersSkill
- why-midnightSkill
- zk-vs-fhe-vs-mpcSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Create Ankr project, copy HTTPS/WSS Midnight endpoints with API key.
- Very specific: line 185
When each fits a privacy DApp, and why Midnight uses zk-SNARKs via Compact.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
It is very likely that you have stale knowledge about building on Midnight Network.
This file will guide to the right skill with the latest knowledge about Midnight Network.
Package versions and SDK signatures in these skills are point-in-time. Resolve them live before pinning — see references/volatile.md. Never install @latest; use the tested set from the support matrix.
Need a specific topic? Each skill below is standalone. Fetch only the ones relevant to your task. If you are starting from scratch, start with scaffold skill.
What to Fetch by Task
| I'm doing... | Fetch these skills |
<!-- SKILLS_REGISTRY:TASK_TABLE -->| Set up Compact, Docker, and proof server before building | midnight-environment-setup/ |
| Understand Midnight's architecture, privacy model, and ZK approach | why-midnight/ |
| Compare ZK vs FHE vs MPC for privacy-preserving computation | zk-vs-fhe-vs-mpc/ |
| Integrate 1AM wallet for dust-free flow | 1am-wallet/ |
| Build a React app with wallet connect/disconnect via DApp Connector API | react-wallet-connector/ |
| Integrate Dynamic.xyz Midnight wallets (external 1AM or embedded MPC) | dynamic-midnight-wallet/ |
| Build and run the Midnight Passport foundations dApp | example-passport-dapp/ |
| Integrate Midnight Passport (passkey Night ID + custody account) | midnight-passport/ |
| Write Compact smart contracts | compact/ |
| Debug Compact contracts, read errors, manage versions | testing/ |
| Build a single dApp targeting all networks from one codebase | multinetwork/ |
| Wire up SDK providers, wallets, deploy/call contracts | midnight-js/ |
| Query blockchain data, watch contract state, subscribe to events | midnight-indexer/ |
| Integrate Ankr RPC for Midnight testnet and mainnet | ankr-midnight/ |
| Privacy audit checklist, prevent data leaks, defensive Compact patterns | midnight-security/ |
| Build a voting/poll dApp on Midnight targeting Android | android-example-voting/ |
| Complete DApp reference: wallet, deploy, interact (use as template) | example-counter/ |
| Build a complete Midnight Network hello-world DApp from scratch using Compact smart contract, headless Node.js tests with vitest, and testkit-js FluentWalletBuilder. | hello-world/ |
| Build a privacy-preserving payment vault with 1AM wallet | example-payment-dapp/ |
| Build a time-lock vault dApp on Midnight | example-locker-dapp/ |
| Build a privacy-preserving leaderboard DApp on Midnight | example-leaderboard-dapp/ |
| Build a private party RSVP dApp with privacy boundary on Midnight | example-private-party-dapp/ |
| Build a private reserve auction dApp with hidden reserve price and private bidders | example-private-reserve-auction/ |
| Build a ZK loan application with attestation on Midnight | example-zk-loan-application/ |
| Build NFTs (shielded + unshielded) with OpenZeppelin | nft/ |
| Token transfers, balance flows, multi-party txs | token-transfers/ |
| Understand Midnight consensus — AURA, GRANDPA, and Partnerchain validators | midnight-consensus/ |
| Explain Midnight node cryptography — hashes and signature schemes | midnight-cryptography/ |
| Explain Midnight on-chain logic — runtime, pallets, and pallet-midnight | midnight-onchain-logic/ |
| Configure or debug Midnight P2P networking and peer discovery | midnight-p2p-networking/ |
| Query Midnight node RPC — contract state, ZSwap, and ledger methods | midnight-rpc/ |
| Explain Midnight on-chain storage — ParityDB, trie, and state roots | midnight-storage/ |
| Explain Midnight transaction lifecycle — proofs, pool, and execution | midnight-transactions/ |
<!-- /SKILLS_REGISTRY:TASK_TABLE -->Skills
<!-- SKILLS_REGISTRY:SECTIONS -->1AM Wallet
- Detect, connect, and wire 1AM browser extension into frontend.
- Provider setup, contract deployment, and dust-free transaction flow.
Android Example Voting
- Build a voting/poll dApp on Midnight using the Kuira Android SDK.
- Compact smart contract, passkey-derived identity, embedded wallet, Compose UI, on-device ZK proving.
Ankr Midnight RPC
- Create Ankr project, copy HTTPS/WSS Midnight endpoints with API key.
- JSON-RPC client for midnight_, system_, chain_*; wire into midnight-js node URL.
Compact
- The four mandatory pieces of every contract, type system, circuits as constraints.
- Witnesses,
disclose(), ledger ADTs, standard library, and security patterns.
Dynamic Midnight Wallet
- DynamicContextProvider + MidnightWalletConnectors or DynamicWaasMidnightConnectors.
- Three surfaces (unshielded, shielded, DUST), balances, sendBalance, registerDust.
Example Counter
- Complete DApp reference: headless wallet, CLI, counter contract.
- DUST generation, deploy, interaction, standalone mode.
Example Hello World
- Build a complete Midnight Network hello-world DApp from scratch using Compact smart contract, headless Node.js tests with vitest, and testkit-js FluentWalletBuilder.
Example Leaderboard Dapp
- Arcade leaderboard with privacy modes,
persistentHashowner commitments, andverifyOwnershipZK proofs. - Next.js + 1AM wallet template with indexer reads and low-level deploy/call.
Example Locker Dapp
- Time-lock vault: lock unshielded NIGHT until a Unix deadline; beneficiary releases via
blockTimeGteand witness auth.
Example Passport Dapp
- Clone templates/passport-dapp; Docker localnet + Compact + Vite one-command demo.
- Passkey onboarding, identity registry, deposit_night, restore, E2E checks.
Example Payment Dapp
- Build a privacy-preserving payment vault: users deposit/withdraw tNIGHT through a Compact smart contract with zero gas fees via the 1AM wallet.
Example Private Party Dapp
- Private RSVP with
persistentCommitand DApp-specific public keys — no witnesses. - Unshielded NIGHT check-in crosses the privacy boundary; Next.js + 1AM frontend template.
- Official vitest devnet test harness in
example-private-partyrepo.
Example Private Reserve Auction
- Hidden reserve price via persistentCommit, public bids with private bidder identities.
- Map/Counter tracking, auction auto-close, privacy boundary on claim via unshielded payment.
- Next.js + 1AM wallet frontend with seller/bidder role cards and indexer polling.
Example ZK Loan Application
- Private credit scoring with Schnorr attestation — score, income, and tenure never touch the ledger.
- Monorepo: Compact contract + attestation API + CLI; optional Next.js + 1AM frontend (leaderboard-dapp pattern).
Indexer
- GraphQL queries and subscriptions, contract state reads, transaction lookups.
- Real-time event watching, offset/null bug workaround, TypeScript helpers.
Midnight Consensus
- Modified Substrate consensus: AURA for block production, GRANDPA for finality.
- Custom validator set with Cardano SPO delegation and optional permissioned validators.
Midnight Cryptography
- Blake2-256 for block hashes; twoxhash for trie storage keys.
- sr25519 (AURA), ECDSA (Partnerchain), Ed25519 (GRANDPA + libp2p).
Midnight Environment Setup
- Detect OS, shell, Docker, VS Code, and Compact; install missing tooling automatically.
- Configure PATH, update compiler, start proof server, and verify the full dev stack.
Midnight Passport
- WebAuthn PRF device secrets, per-user custody Compact contracts, Night ID registry.
- PassportAccount + IdentityRegistry client APIs, witnesses, session rules (no secret storage).
Midnight.js
- TypeScript SDK: provider wiring, wallet SDK (HDWallet, WalletFacade, Shielded/Unshielded/Dust).
- Contract deployment, circuit calls, DUST generation, private state, testkit.
Multinetwork
- Unified provider builder, wallet abstraction, proof server routing.
- Contract registry, deploy scripts, DUST flow per network.
NFT
- Build shielded and unshielded NFTs on Midnight.
- OpenZeppelin NonFungibleToken, mint, transfer, metadata, privacy patterns.
Onchain Logic and State
- Polkadot SDK WASM runtime with FRAME pallets including pallet-midnight.
- Proof verification, ZSwap and contract ops, Patricia-Merkle state commitments.
P2P Networking
- Bootstrap, mDNS, and Kademlia DHT discovery strategies.
- Noise + Yamux upgrades; Ping, Request-Response, and Notification substreams.
React Wallet Connector
- Scaffold a React + Vite app with DApp Connector API wallet connection.
window.midnightenumeration, connect/disconnect UI, unshielded address display.
RPC Interface
- Custom midnight_* JSON-RPC methods for contract and ledger state.
- Polkadot SDK defaults, Partnerchain RPCs, and validator RPC security.
Security
- Privacy audit checklist, data leak patterns, commitment/nullifier design.
- Witness trust, front-running resistance, transaction semantics.
Storage
- ParityDB key-value store with Patricia-Merkle trie state commitments.
- twoxhash for fast storage keys; inclusion proofs for on-chain data.
Testing
- Static vs dynamic errors, reading compiler messages,
--skip-zkdev loop. - Version management across 6 components, common debugging patterns.
Token Transfers
- Shielded and unshielded token transfers.
- Balance queries, multi-party flows, transaction semantics.
Transactions
- Unsigned proof-embedded transactions from the Midnight Ledger.
- Pool well-formedness → runtime proof verification → state commit.
Why Midnight
- Data protection blockchain with public/private state, selective disclosure, and zk-SNARKs.
- Why it exists, how it works, and the privacy guarantees it provides.
ZK vs FHE vs MPC
- Tradeoffs across zero-knowledge proofs, fully homomorphic encryption, and secure multi-party computation.
- When each fits a privacy DApp, and why Midnight uses zk-SNARKs via Compact.
<!-- /SKILLS_REGISTRY:SECTIONS -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

