A demonstration web application for generating Nostr cryptographic key pairs with custom prefixes. Generate proof-of-work public keys or vanity public keys with specific patterns using client-side cryptography.
๐ Try it live at nostr.rest
- ๐ Client-Side Generation: All key generation happens locally in your browser - no data is sent to external servers
- ๐ฏ Custom Prefixes: Generate keys with specific hex prefixes (e.g.,
be,dead,cafe) - โก Dual Speed Modes: Choose between slow mode (browser-friendly) and fast mode (maximum performance)
- ๐ฑ Mobile Responsive: Optimized interface for both desktop and mobile devices
- ๐ก๏ธ Privacy First: Disconnect from the internet before generation for maximum privacy
- ๐ Real-Time Progress: Live updates showing generation progress and statistics
- Enter a Prefix: Type your desired hex prefix (e.g.,
be,dead,cafe) - Choose Speed Mode: Slow mode for stability, fast mode for maximum speed
- Generate: Watch as the tool searches for a matching key pair
- Copy Keys: Use the copy buttons to save your generated keys
Prefix Rules: Only use hexadecimal characters (0123456789abcdef). Longer prefixes take exponentially more time to generate.
Built with Next.js, Material-UI, and nostr-tools for client-side cryptography. This is a single-threaded implementation designed for demonstration purposes.
For production vanity key generation with larger prefixes, consider using Rana for multi-threaded generation.
# Clone and setup
git clone https://github.com/colincode0/nostr-vanity-keygen.git
cd nostr-vanity-keygen/app
npm install
npm run devThis is a demonstration project intended for learning and experimentation. Use at your own risk.
- Author: @colincode0
- Nostr Public Key:
npub1qqqqqqp350slvdds7028l4yre5cuh8v38zseert25mxf7lkr2trsy0j2m8