Ref Node Live| VIEW RUST CORE ON GITHUB →
INTRODUCTION
CHAIN
RESOURCES
INNOVATION
CONNECT
Mining

Mine CSM

Mining is the search for a nonce that makes the Proof-of-Work hash fall below the network target. No registration, no stake, no permission — only a CPU, 16 MB of RAM per thread, and the software. The reward is issued by the protocol, not by any foundation.

01 · The Mining Condition

A Search, Not a Vote

Mining is a bounded search over the nonce field. The miner varies the nonce, computes the PoW hash, and checks whether the result falls below the current target. If it does, the block is valid; if it does not, the miner tries another nonce. There is no strategy, no cleverness, no shortcut — only computation.

produce(block) ⟺ ∃ n : pow(n) ≤ target

The target is a 256-bit number derived from the current difficulty. Lower target = harder puzzle = fewer valid nonces per unit time. The difficulty is adjusted by the protocol to keep the mean block time near its target.

difficulty = 2256 / target

Because each hash is an independent trial, the expected number of hashes to find a valid nonce is exactly the difficulty. A miner with hash rate H expects to find a block every difficulty / H seconds on average.

E[tblock] = difficulty / H
02 · SahyadriX PoW

Memory-Hard, Not Compute-Hard

Most PoW algorithms are dominated by raw arithmetic throughput — which makes them a target for ASICs that specialize in that arithmetic. SahyadriX is different. Every hash requires a 16 MB working set, so the cost of mining is dominated by memory bandwidth rather than computational throughput.

hash(header, nonce) =Poseidon2( MemLoop( BLAKE3Chain( pre_pow ‖ t ‖ nonce ) ) )
I

BLAKE3 Chain — Fill 16 MB

The pre-hash is a chain of 524,288 BLAKE3 iterations. Each iteration hashes the previous output, filling a 16 MB buffer with a deterministic pseudo-random sequence derived from the block header.

II

Memory Loop — 1,024 Rounds

The 16 MB buffer is traversed by 1,024 rounds of data-dependent random access. The address for each round is derived from the current state, so the access pattern cannot be precomputed or cached.

III

Poseidon2 — Final Binding

The final 32-byte state is compressed by a Poseidon2 permutation over the Goldilocks field. This binding makes the output verifiable inside a recursive proof system at low constraint cost.

Why Memory-Hard?

An ASIC is fast at arithmetic and slow at memory. A CPU is fast at both and already has the memory — 16 MB fits comfortably in a modern CPU cache. Making the hash memory-hard means an ASIC that wants to compete must include 16 MB of fast SRAM per parallel hash pipeline, which raises the cost of specialization dramatically. The result: hash power stays distributed across commodity hardware rather than concentrating in a few specialized rigs.

03 · Quick Start

Five Steps

From zero to mining. Tested on Ubuntu 22.04 / 24.04 and Debian 12. macOS supported via homebrew. Windows requires WSL2.

terminal 1 — install & build
# System dependencies (Ubuntu / Debian)
$ sudo apt update
$ sudo apt install -y git build-essential cmake pkg-config libssl-dev clang
# Install Rust (skip if already installed)
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source $HOME/.cargo/env
# Clone and build
$ git clone https://github.com/sahyadri-core/sahyadri.git ~/sahyadri-final
$ cd ~/sahyadri-final/sahyadri
$ cargo build --release
✔ Build complete — sahyadrid + sahyadri-miner ready
terminal 2 — start the node
# Launch the node
# First run: fast bootstrap via Sync-Wave
# Subsequent runs: instant startup from local data
$ cd ~/sahyadri-final/sahyadri
$ ./sahyadri.sh
# Ports opened by default:
# gRPC 27113
# wRPC JSON 27112
# P2P 26111
✔ Node online — synced, mining-ready
terminal 3 — start mining
# Second terminal: the miner
$ cd ~/sahyadri-final/sahyadri/sahyadri-miner
$ ./target/release/sahyadri-miner \
$ -s 127.0.0.1 \
$ -p 27113 \
$ -a csm1s...YOUR_ADDRESS \
$ -t 1 \
$ --mine-when-not-synced
# -s node host -p node gRPC port
# -a your CSM address -t CPU threads to use
✔ Miner running — blocks credited to your address
04 · Mining Economics

Reward = Emission + Fees

A miner earns two things when producing a block: the block reward (new CSM minted by the emission function) and the transaction fees from the transactions included in the block. The block reward halves every four years; the fees do not.

earn(B) = R(h) + Σtx ∈ B fee(tx)

The emission function R(h) is fixed at genesis and cannot be changed by any governance process. The fees are set by transaction senders, but in Sahyadri the base fee is a constant — there is no auction for block space and no priority fee market in the initial design.

Genesis reward
0.08318123 CSM / block
Halving interval
126,144,000 blocks
Supply cap
21,000,000 CSM
Premine
0 CSM

The exact reward distribution — including any protocol-level allocation to a treasury or other purpose — is specified in the whitepaper and enforced by the transition function. This page states only what the protocol defines, not values that individual deployments may choose.

Mining is not a way to earn free money. It is the way the network converts electricity into verifiable history. The reward is what makes it rational.
— Sahyadri