Stratum V2 Security: How Noise Stops Hashrate Theft

Published

Stratum V2 Security: How Noise Stops Hashrate Theft

Share

Frequently asked questions

How does Stratum V2 encrypt the connection?

Stratum V2 uses the Noise protocol framework to perform an authenticated key exchange, then encrypts all traffic with ChaCha20-Poly1305, an authenticated cipher that provides both confidentiality and tamper detection. It is the same cryptographic family used by WireGuard, and it is fast even on low-power mining hardware.

What is an authority key in Stratum V2?

An authority key is a public key the pool publishes and the miner pins in its configuration. During the Noise handshake the pool proves it holds the matching private key, so your miner knows it reached the genuine pool and not an impersonator. mkpool publishes its authority key on every connect page.

Can hashrate really be stolen on Stratum V1?

Yes. Because V1 is plaintext and unauthenticated, an active attacker between you and the pool can rewrite the session and point your accepted shares at their own payout account. You would see normal-looking activity while mining for a stranger. This has been demonstrated repeatedly, which is a core reason V2 exists.

Does encryption slow mining down?

No meaningfully. The Noise handshake happens once per connection, and ChaCha20-Poly1305 is extremely fast; encrypting the small stream of jobs and shares is trivial work for anything that can run mining firmware. In exchange you get confidentiality, integrity, and pool authentication.

Is Stratum V2 more secure than V1 over TLS?

They overlap but V2 goes further. TLS gives V1 encryption and, with certificates, server authentication. Stratum V2 bakes in encryption plus a pinned authority key and also redesigns the message format. If you cannot run V2 yet, V1 over TLS is a strong interim step that closes the biggest holes.

Mecanik1337

Written by Mecanik1337

Founder and Lead Engineer, mkpool

Mecanik1337 builds and operates mkpool, an open-source solo mining pool spanning nine chains. He writes about Stratum protocol internals, ASIC and Bitaxe hardware, and the mechanics of solo mining, drawing on the pool's own production telemetry.

View profile →

Newsletter

Mining insights in your inbox

New guides, hardware reviews, and pool updates. No spam, unsubscribe anytime.

Loading comments...

Keep reading

back to all articles