Pools and payouts

Stratum V2

Stratum V2 is the successor to the original stratum protocol, adding encryption and letting miners propose their own block contents.

Put it to work Mining profit calculator Your machine, the power price you pay, the income per day. Open the page
Format
Binary messages
Encryption
Noise protocol, always on
Address begins with
stratum2+tcp://
Optional part
Choosing your own transactions
Works with V1 machines
Through a translation proxy

What it means in practice

Its specification defines three parts: a Mining Protocol for jobs and shares, a Job Declaration Protocol through which miners can declare the transactions they want to mine, and a Template Distribution Protocol for getting templates from a node. Connections are authenticated and encrypted using the Noise Protocol Framework, which stops hashrate being hijacked in transit. Messages are binary, which uses less bandwidth than V1's text messages.

What a miner notices

Day to day, little: the machine connects and hashes. Underneath, the link is encrypted, data use falls, and a miner that runs its own node can choose which transactions go into the block it works on.

It needs support on both ends. Where the firmware speaks only the first version, a small translator program on the local network can stand in between.

The roles

The specification names the parts of a mining setup and the language between each pair. The mining device hashes. The pool hands out jobs and pays. A proxy can sit between them and bundle thousands of machines into one connection. A job declarator and a template provider come in when the miner wants to build its own blocks.

A simple home setup uses only the first two. The rest is there for sites and for people who run a node.

Header-only mining

In version 1 a machine receives pieces of a transaction and rebuilds the Merkle root many times a second. In V2 a standard channel can receive a finished root and simply roll the fields in the header. The control board does less, and the messages are smaller.

Extended channels keep the older flexibility for proxies, which then produce work for the machines behind them.

Sending the next job early

A pool can send a job for the block that does not exist yet, before its parent is found. When the block arrives, one short message tells the machine which parent to use, and hashing carries on. The gap in which old work is hashed becomes shorter.

The gain is a fraction of a percent on ten-minute blocks and larger on quick chains.

Smaller messages, added up

Example figures: 3,000 machines send ten shares a minute each, which is 43.2 million shares a day. As text at about 120 bytes each, that is 5.2 GB. As encrypted binary at about 62 bytes, it is 2.7 GB. A proxy that merges the machines into one channel with a higher share difficulty cuts it to a small part of that.

For one machine the saving is too small to notice. For a site on a metered or satellite line it is real.

Who picks the transactions

On a classic pool the operator decides what goes into a block and the miner only hashes. With job declaration the miner’s own node proposes a set of transactions, and the pool checks that the block pays as agreed. Pay stays with the pool, choice moves to the miner.

It matters for the network more than for one wallet: many independent choosers make it harder for anyone to keep a valid transaction out. If you do not run a node, nothing changes and the pool’s template is used.

The address contains the pool’s public key. The machine uses it to prove that it is talking to the real pool, so copy the whole line, including the long string at the end.

Worked example

If 1% of a site's 3,000 machines were silently redirected by a man-in-the-middle on an unencrypted V1 link, 30 machines' output would be lost; encrypted V2 connections are designed to prevent that.

Example figures, not live data.

Common mistakes

  • Leaving out the key at the end of the address.
  • Pointing V1 firmware straight at a V2 port without a translator.
  • Expecting a higher hashrate; the chips do the same work.

Common questions

Do I need Stratum V2?

No. The first version works on every pool. V2 adds security and choice where your firmware and pool support it.

Does Stratum V2 raise income?

It saves a little data and can cut stale work. The main gains are privacy and control.

Does my ASIC support Stratum V2?

It depends on the firmware. Look for V2 in the pool settings or the release notes, or use a translation proxy.

Is V2 safer on a home network?

Yes. Every message is encrypted and the pool is authenticated, so shares cannot be redirected on the way.

Do payout schemes change under V2?

No. FPPS, PPLNS and the others sit on top and work as before.