Skip to content

A quick and dirty script to find a nostr vanity npub.

License

Notifications You must be signed in to change notification settings

Shadouts/vanity-npub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanity nPub

This is a quick and dirty script to mine a vanity npub for nostr.

Requirements

This was built and used with NodeJS 18.

Usage

Install packages:

[localhost]$ npm i

Set some values. FIND represents the string you want to mine and NUM_WORKERS is the max number of simultaneous mining threads. Make sure that your search string conforms to the bech32 characterset or you will never find a match:

[localhost]$ export FIND=<string>; export NUM_WORKERS=<integer>

Start the process:

[localhost]$ node script.js

The incremental reporting is just for fun. It should not be regarded as progress toward finding your vanity npub. There is no progress toward finding an npub. You have the same probability of finding it on your first attempt as you do on your one billionth attempt.

The process will exit when it finds a npub beginning with your string.

Conbtributions

I'm sure this could be made more efficient. I've experimented with limited process messaging (instead of on each iteration), but it didn't significantly improve performance.

About

A quick and dirty script to find a nostr vanity npub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published