nostr-batcher v1.04

Generate batches of nostr keypairs (npub / nsec, plus hex) and export them. Works offline; nothing leaves this page.

Terminal: python3 nostr_batcher.py opens a TUI, or python3 nostr_batcher.py -n 50 -f csv -o keys.csv.

Works offline
1. How many keys?
1 to 10000
2. Vanity prefix (optional)

Empty = random keys. Allowed: qpzry9x8gf2tvdw0s3jn54khce6mua7l (no 1, b, i, o). Each extra character makes the search 32 times slower.

3. Export format

Public key = x-only coordinate of secret × G on secp256k1 (BIP-340, as used by NIP-01). npub/nsec = NIP-19 bech32 of the raw 32 bytes. Secrets come from crypto.getRandomValues with rejection sampling; the curve math is plain JavaScript BigInt, bundled inside this file. Compatible with the Python tool and any nostr client.