Important note: We recommend installing via the NockPool Launcher application, which will automatically keep your miner up to date!
This repo includes code and binaries necessary to participate in Nockpool, the premier Nockchain mining pool, with your Linux or Apple Silicon machines.
You can download the prebuilt binaries in the release tab. The macOS bins are codesigned and the Linux bins are SLSA3 attested -- we recommend verifying.
nockpool-miner --account-token nockacct_youraccounttokenhere --max-threads 12nockpool-miner --key nockpool_yourdevicekeyhere123 --max-threads 12- Create an account at nockpool.com
- Generate an account token in your dashboard (recommended)
- Use the account token with
--account-tokenflag - The miner will automatically create and manage device keys for you
- Account tokens (
nockacct_*): Long-lived tokens that can create and manage multiple device keys. - Device keys (
nock_*): Individual mining tokens created automatically by account tokens. One per mining device.
Create an account at nockpool.com and generate account tokens in your dashboard.
Logical cores times two minus 4 is a good rule of thumb. E.g., if you have a 16 core Ryzen capable of 32 threads, 28 would be a good target.
As much as you can get! Recommended 8GB + 2.5 per thread.
Just swap out the zkvm-jetpack dependency in Cargo.toml.
Clone repo:
git clone https://github.com/SWPSCO/nockpool-miner
Build:
cargo build --releaseRun:
# With account token (recommended)
target/release/nockpool-miner --account-token nockacct_youraccounttokenhere
# Or with device key
target/release/nockpool-miner --key nockpool_yourdevicekeyhere123| Flag | Environment Variable | Default | Description |
|---|---|---|---|
--account-token |
NOCKPOOL_ACCOUNT_TOKEN |
- | Account token for generating mining tokens (recommended). |
--key |
KEY |
- | Direct device key for authentication. |
--api-url |
NOCKPOOL_API_URL |
https://nockpool.com |
Base URL for NockPool API (for development). |
--max-threads |
MAX_THREADS |
(all available threads - 2) | Set the maximum number of threads to use for mining. |
--server-address |
SERVER_ADDRESS |
quiver.nockpool.com:27016 |
The ip:port of the nockpool server. |
--client-address |
CLIENT_ADDRESS |
0.0.0.0:27017 |
The ip:port of the quiver client. |
--network-only |
NETWORK_ONLY |
false |
Mine only for network shares. |
--insecure |
INSECURE |
false |
Use insecure connection to the nockpool server. |
--benchmark |
BENCHMARK |
false |
Run benchmarking tool. Ignores all other arguments. |
--clear-key |
- | false |
Clear stored mining key and exit. |
--jam |
MINER_JAM_PATH |
./miner.jam |
Path to jamfile for miner |
--lib-dir |
- | ./libzkvm_jetpack.so |
Path to dynamic libraries |
Note: Either --account-token or --key must be provided (but not both).