This is a Node.js CPU miner for Hash Layer — a permissionless Proof-of-Work layer built on top of Sui. It allows anyone to contribute raw computation to a decentralized chain of blocks, each linked by hash and validated through transparent difficulty rules. The miner connects to the Sui network, reads the current chain state, constructs candidate blocks, and searches for a valid nonce that satisfies the current difficulty target. Once a valid block is found, it submits the result to the network.
- Node.js 
- A Sui wallet (mnemonic 12 words) and 1 SUI 
- 1 CPU core, 512mb RAM 
If you're using Git:
git clone https://github.com/GemsGame/hash-layer-miner.git
cd hash-layer-minerOr just download the ZIP and unzip it.
npm installMNEMONIC="word word word word word word word word word word" # Write your seed-phrase here (12 words)npm run startAfter mining you can mint your reward by that command.
npm run mint- 
Permissionless Mining 
 Anyone can participate in mining without registration, permissions, or centralized coordination.
- 
On-Chain Events Instead of Objects 
 Each block is emitted as an event, reducing gas costs and simplifying verification.
- 
Linear Emission Model 
 Smooth reward decay over time without abrupt halvings, enabling predictable token distribution.
- 
Dynamic Difficulty Adjustment 
 Difficulty recalibrates every 1440 blocks to maintain a stable mining tempo.
- 
Transparent Verification 
 The full block history is accessible via RPC, from genesis to the latest block.
- 
Programmable Data Layer 
 Each block includes adatafield for storing messages, NFT triggers, or other on-chain payloads.
- 
Minimal Overhead 
 The architecture avoids shared objects and persistent storage, enabling scalable mining with low cost.
- 
Cryptographic Integrity 
 Every block includes aprevious_hash, forming a verifiable chain of computational work.
- 
Sui Integration 
 Built on Sui’s object-oriented architecture for high throughput and secure execution.


 Node.js
 Node.js A Sui wallet
 A Sui wallet