hash-mining
A Rust and CUDA miner that uses NVIDIA GPUs to solve proof-of-work puzzles for the HASH Ethereum token.
hash-miner is an off-chain cryptocurrency miner for a token called HASH, which runs a proof of work system on the Ethereum blockchain. Proof of work means computers compete to solve a computationally intensive math puzzle, and whoever finds the answer first earns a reward in HASH tokens. This miner is built to do that work as fast as possible using NVIDIA GPUs.
The software combines two technologies: Rust handles network communication, wallet management, and transaction submission, while a CUDA kernel, code that runs directly on the graphics card, does the heavy hashing computation. CUDA is NVIDIA's framework for running programs on GPUs. The hash function used is keccak, the same one underlying Ethereum. The miner connects to an Ethereum node through a websocket, listens for new mining jobs, runs the hash search across all available GPUs, and when it finds a valid result, submits a transaction to claim the reward.
Setup involves installing Rust and CUDA, building the project with a provided Makefile, generating a wallet address, and editing a configuration file with your Ethereum node address and other settings. The miner reads its private key from an environment variable rather than a file, for security. A benchmark command lets you test your GPU's hash rate; the README reports roughly 1.55 billion hashes per second on one RTX 2080 Ti. The full README is longer than what was shown.
You would use this if you want to mine the HASH token and have an NVIDIA GPU available.
Where it fits
- Mine the HASH token on Ethereum using one or more NVIDIA GPUs.
- Benchmark a GPU's hash rate against the miner's reference numbers.
- Study how a Rust host program coordinates with a custom CUDA kernel.
- Learn how a proof-of-work token built on an existing keccak hash function operates.