Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lacaulac/nostr-pubminer
A simple tool to mine nostr vanity pubkeys.
https://github.com/lacaulac/nostr-pubminer
nostr rust
Last synced: 3 months ago
JSON representation
A simple tool to mine nostr vanity pubkeys.
- Host: GitHub
- URL: https://github.com/lacaulac/nostr-pubminer
- Owner: lacaulac
- License: mit
- Created: 2023-01-02T20:37:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T12:59:43.000Z (almost 2 years ago)
- Last Synced: 2024-02-16T05:35:26.366Z (9 months ago)
- Topics: nostr, rust
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nostr - nostr-pubminer - pubminer.svg?style=social) - A simple tool to mine nostr vanity pubkeys (Vanity pubkey mining / Client reviews and/or comparisons)
README
# Nostr CPU pubkey miner
A simple tool to mine nostr vanity pubkeys. Currently supports hexadecimal and bech32 vanity keys.
Tested on Windows but should run on other platforms supported by the rust compiler without any problems.
This is quick and dirty code, but works well enough.## Compilation
After [installing rust](https://rustup.rs/), clone the repo and compile the tool :
```
git clone https://github.com/lacaulac/nostr-pubminer.git
cd nostr-pubminer
cargo build --release
```The executable will be in the newly created `target/release` directory.
## Usage
Every generated keypair will be stored in a `output.csv` file in the directory the tool is launched from.
Generating vanity keypairs with the hex pubkey beginning with `deadbeef` using 11 threads :
```
./vanitypubkey deadbeef 11
```Generating vanity keypairs with the bech32 pubkey beginning with `npub1dead8eef` using 11 threads :
```
./vanitypubkey dead8eef 11 yes
```Running a one-core benchmark with 10000 iterations, testing generation and hex key filtering:
```
./vanitypubkey benchmark 10000
```Running a one-core benchmark with 10000 iterations, testing generation and bech32 key filtering:
```
./vanitypubkey benchmark 10000 yes
```## Architecture
A user-defined amount of threads continuously generate random keypairs and send them to the main thread. The main thread checks every pubkey and logs the ones that match the tool's arguments into the `output.csv` file.