Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vortelus/mining-tool
Nostr public key mining tool
https://github.com/vortelus/mining-tool
mining nostr rust
Last synced: 17 days ago
JSON representation
Nostr public key mining tool
- Host: GitHub
- URL: https://github.com/vortelus/mining-tool
- Owner: vortelus
- License: mit
- Created: 2024-10-23T01:18:33.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:07:09.000Z (23 days ago)
- Last Synced: 2024-10-23T16:03:20.771Z (23 days ago)
- Topics: mining, nostr, rust
- Language: Rust
- Homepage:
- Size: 183 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirements:
0. You need Rust version 1.64 or higher to compile.
## Install
Using Cargo to install (requires ~/.cargo/bin to be in PATH)
```bash
cargo install rana
```### Compile and execute it:
To compile on Ubuntu/Pop!\_OS/Debian, please install [cargo](https://www.rust-lang.org/tools/install), then run the following commands:
```bash
sudo apt update
sudo apt install -y cmake build-essential
```Then clone the repo, build and run:
```bash
git clone https://github.com/vortelus/mining-tool.git
cd rana
cargo run --release
```By default it will generate a public key with a difficulty of `10` but you can customize its difficulty or vanity prefix with the proper parameters.
### Searching for multiple vanity targets at once
Specifying multiple `vanity-n-*` targets allows you to leverage the work you've already done to generate each new `npub` candidate. Searching a candidate `npub` for additional targets is incredibly fast because it's just a trivial string compare.
Statistically speaking, searching for `rana,h0dl` should take half the time that searching for `rana` and then doing a second, separate search for `hodl` would take.