Skip to content

feat: add Midnight dApp security checklist tutorial (#320)#559

Open
aglichandrap wants to merge 1 commit into
midnightntwrk:mainfrom
aglichandrap:aglichandrap/feature/security-checklist-tutorial
Open

feat: add Midnight dApp security checklist tutorial (#320)#559
aglichandrap wants to merge 1 commit into
midnightntwrk:mainfrom
aglichandrap:aglichandrap/feature/security-checklist-tutorial

Conversation

@aglichandrap
Copy link
Copy Markdown

Summary

Closes #320

Adds a comprehensive pre-deployment security checklist tutorial for Midnight dApps. This is a Tier 2 (Medium) submission targeting $500-$700 in NIGHT tokens.

Deliverables

Written tutorial (~3,000 words) covering all 7 required security checks:

  1. disclose() audit — Identifying secret leaks in Compact contracts
  2. ownPublicKey() usage review — Known vulnerability patterns and proper authentication
  3. Replay protection verification — Nonce and nullifier implementation
  4. Exported ledger field review — Correct visibility and typing
  5. Witness implementation correctness — Input validation and edge cases
  6. Version compatibility confirmation — SDK, compiler, and proof server alignment
  7. Proof generation testing on testnet — Comprehensive testing strategy

Format

  • Practical, code-heavy tutorial with real Compact and TypeScript examples
  • Each section includes audit steps, code examples, and common pitfalls
  • Pre-deployment checklist summary table for quick reference
  • Follows Midnight technical style guide

Publishing

Tutorial included in tutorials/security-checklist.md. Ready for publication on Dev.to or Midnight docs.

Checklist

  • Written tutorial (2,500-3,500 words)
  • Code examples tested and functional
  • Follows Midnight technical style guide
  • Covers all 7 required security checks
  • Published on Dev.to (pending review)
  • Shared on X/LinkedIn with #MidnightforDevs (pending publication)

Adds a comprehensive pre-deployment security checklist covering:
1. disclose() audit — no secret leaks
2. ownPublicKey() usage review — proper authentication
3. Replay protection verification — nonces or nullifiers
4. Exported ledger field review — correct visibility
5. Witness implementation correctness — validated inputs
6. Version compatibility confirmation — SDK, compiler, proof server
7. Proof generation testing on testnet

Closes midnightntwrk#320

Target: Tier 2 (Medium) - 00-00 in NIGHT tokens
@aglichandrap aglichandrap requested a review from a team as a code owner May 27, 2026 09:23
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tutorial] Security Checklist for Midnight dApps Before Deployment

2 participants