Knight Shield
Knight Shield is the first independent privacy-first mobile wallet for the Midnight Network. It provides real privacy guarantees through zero-knowledge proofs, not just mixing or obfuscation.
What is Knight Shield?
Knight Shield is a React Native mobile wallet that goes beyond basic send/receive functionality. It includes three Ghost Features — GhostCloak, GhostTracking, and GhostShard — that protect users against on-chain surveillance, timing analysis, and single-point-of-failure seed storage.
Key Features
- GhostCloak — Unlinkable transactions via ZK address obfuscation through a TLS relay
- GhostTracking — Timing randomization and fee normalization to defeat pattern analysis
- GhostShard — Shamir Secret Sharing for seed backup across multiple storage locations
- Native Security — iOS SecureEnclave and Android Keystore for seed storage with secure memory wiping
- Compact Smart Contracts — 5 contracts handling billing, fee pooling, shard registry, reserves, and tokens
- TLS Relay Server — WebSocket proxy that decouples wallet identity from Midnight node connections
Monorepo Structure
knight-shield/
├── packages/
│ ├── core/ # KnightShieldWallet, Ghost feature clients
│ ├── contracts/ # 5 Compact smart contracts
│ ├── native-bridges/ # iOS (Swift) + Android (Kotlin) secure storage
│ ├── relay-server/ # Node.js TLS proxy with WebSocket
│ ├── mobile/ # React Native app (7 screens)
│ └── docs/ # This documentation site
├── scripts/ # Deploy and compile scripts
├── knowledge/ # ADRs and security docs
└── content/ # Build-in-public content pipeline
Revenue Model
Knight Shield sustains itself through:
- Dev fee: 0.15% (15 basis points) on all transfers via
TransferHelper - Session billing: Usage-based fees for relay server sessions
- Fee reserve: Admin-controlled reserve for fee subsidies during growth
Built on Midnight
Knight Shield leverages the Midnight Network's native ZK capabilities:
- Compact language for smart contracts with built-in ZK proving
- TypeScript SDK (
@midnight-ntwrk/*) for wallet and contract interaction - Preprod network support with path to mainnet
Next Steps
- Architecture — Understand how the packages fit together
- Quickstart — Build and run Knight Shield locally
- Ghost Features — Learn about the privacy features