PackagesContracts WizardAvailable Contracts

Available Contracts

The Midnight Contracts Wizard includes several production-ready smart contract templates. Each contract is designed with privacy and zero-knowledge proofs in mind.

Tokenization Contract

7 ZK Circuits

A complete project tokenization system with zero-knowledge privacy for investments.

Features

  • Private token minting and burning
  • Confidential balance management
  • Investment tracking with ZK proofs
  • Transfer with privacy guarantees

Use Cases

  • Real estate tokenization
  • Asset-backed securities
  • Private equity tracking
  • Confidential fundraising

Staking Contract

8 ZK Circuits

A privacy-focused staking system with rewards and configurable lock periods.

Features

  • Private stake amounts
  • Confidential reward distribution
  • Flexible lock periods
  • Slashing mechanisms

Use Cases

  • Network validation
  • Governance participation
  • Yield generation
  • Long-term holding incentives

Identity Contracts

1 ZK Circuit

Complete identity management system with cryptographic libraries for privacy-preserving verification.

Features

  • Zero-knowledge identity proofs
  • Selective disclosure
  • Credential verification
  • Privacy-preserving authentication

Use Cases

  • KYC compliance
  • Age verification
  • Credential validation
  • Access control

Oracle Contract

7 ZK Circuits

Decentralized oracle system with privacy-preserving data feeds.

Features

  • Confidential data ingestion
  • Multi-source aggregation
  • Tamper-proof feeds
  • Privacy-preserving validation

Use Cases

  • Price feeds
  • Weather data
  • Sports results
  • IoT data streams

Lending & Borrowing Contract

7 ZK Circuits

Privacy-preserving decentralized lending protocol.

Features

  • Confidential collateral management
  • Private loan amounts
  • Interest rate privacy
  • Liquidation with ZK proofs

Use Cases

  • DeFi lending platforms
  • Peer-to-peer lending
  • Collateralized loans
  • Credit lines

Contract Selection Tips

Single Contract Projects

Perfect for focused applications or proof-of-concepts. Select one contract type and build a specialized solution.

Multi-Contract Projects

Combine multiple contracts for complex dApps. For example:

  • Tokenization + Oracle - Real-world asset pricing
  • Staking + Identity - Governance with verified participants
  • Lending + Oracle - Price-aware DeFi protocols

All Contracts

Select all contracts to explore the full ecosystem or build a comprehensive platform.

Technical Details

Each contract includes:

  • Complete .compact source files
  • Compiled TypeScript interfaces
  • ZK circuit configurations
  • Build and deployment scripts
  • Example usage documentation

Next Steps

Learn about the Project Structure that gets generated for your selected contracts.