Convergence '25 Recap is Live| Watch All Talks
Midnight OpenZeppelin

Build Securely on Midnight
with OpenZeppelin

OpenZeppelin brings its trusted libraries to Compact, Midnight’s TypeScript-inspired smart contract language. Built for privacy and compliance, these standards enable developers to create applications that safeguard data across DeFi, NFTs, identity, and Real-World Assets.

OpenZeppelin Compact Contracts

Build DeFi, identity, and tokenization applications on Midnight with battle-tested contract libraries for Compact, leveraging selective disclosure and privacy-preserving features.

Docs → Github →

Open Source Tools

Relayer Coming Soon

Broadcast Compact contract transactions securely while preserving data confidentiality, ensuring private interactions reach the Midnight network seamlessly.

Monitor Coming Soon

Track Compact contracts behavior to detect anomalies, monitor execution patterns, and trigger alerts without compromising sensitive data or user privacy.

UI Builder Coming Soon

Generate working interfaces for Compact contracts in seconds to test privacy-enabled functions without building custom front-ends.

Compact Security Detectors SDK

Identify vulnerabilities in Compact contracts before deployment with integrated security analysis to ship secure code across DeFi, identity, and tokenization applications on Midnight.

Github →

Enterprise-grade security and compliance for institutional adoption

Security Services

Smart Contract Security Audit

Secure your Midnight applications with comprehensive smart contract audits covering DeFi, identity, and tokenization protocols with privacy-preserving features.

Learn More →

Blockchain Infrastructure Audit

Strengthen your offchain infrastructure through specialized audits of rollup components, sequencers, bridges, and privacy-preserving systems of your Midnight apps.

Learn More →

Starter Apps

LunarSwap

Explore privacy-enabled DeFi on Midnight with LunarSwap, a decentralized exchange reference implementation built with Compact Contracts. Featuring concentrated liquidity mechanics and shielded swap capabilities, it demonstrates how modern AMM design integrates seamlessly with Midnight's privacy-first architecture.

Use LunarSwap as your blueprint for building privacy-ready DeFi applications. Review Compact contract patterns, examine offchain component integration, and understand how to implement liquidity provisioning with selective disclosure. Built with Next.js and robust Compact math modules for production-grade privacy applications.

Content to Help You Build

The Notorious Bug Digest #5: Post EIP-7702 Pitfalls, JIT Penalty Rebates, and Manipulation of Recursive Functions
Beyond Zero Knowledge: How Fully Homomorphic Encryption Enables Private Shared State
The Notorious Bug Digest #4
The Notorious Bug Digest #3
Beyond Smart Contracts: A Deep Dive into Blockchain Infrastructure Security Auditing
ERC-4626 Tokens in DeFi: Exchange Rate Manipulation Risks
The Notorious Bug Digest #2
The Notorious Bug Digest #1
Web3 Security Auditor's 2024 Rewind
What is a Smart Contract Audit: Lessons from OpenZeppelin’s 700+ Audits
midnight

Build and protect the open economy. Together.

Talk to an Expert