Skip to content

colincode0/nostr-vanity-keygen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

50 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”‘ Nostr Vanity Key Generator

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

โœจ Features

  • ๐Ÿ”’ 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

๐ŸŽฎ How It Works

  1. Enter a Prefix: Type your desired hex prefix (e.g., be, dead, cafe)
  2. Choose Speed Mode: Slow mode for stability, fast mode for maximum speed
  3. Generate: Watch as the tool searches for a matching key pair
  4. 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.

๐Ÿ› ๏ธ Technical Details

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.

๐Ÿ”ง Development

# Clone and setup
git clone https://github.com/colincode0/nostr-vanity-keygen.git
cd nostr-vanity-keygen/app
npm install
npm run dev

โš ๏ธ Disclaimer

This is a demonstration project intended for learning and experimentation. Use at your own risk.

  • Author: @colincode0
  • Nostr Public Key: npub1qqqqqqp350slvdds7028l4yre5cuh8v38zseert25mxf7lkr2trsy0j2m8

๐Ÿ“ธ Example: Public Key with Four Leading Zeros

c

About

Web application for generating cryptographic key pairs with custom prefixes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published