Stratum v2: Superior Security, Flexibility, and PerformanceBandwidth Consumption:SV2 optimizes bandwidth by encoding messages in minimized binary and eliminating redundant messaging. Stratum V1's JSON-RPC protocol is 2-3x heavier due to human-readable text. SV2 reduces average network message size from ~100 bytes (unencrypted) to 48 bytes (encrypted), lowering infrastructure costs and enabling precise hashrate measurement.
Server CPU Load:SV2 allows efficient caching and eliminates Merkle Root recomputation for each share submission. It enables header-only mining, significantly reducing server CPU load.
Job Distribution Latency:SV2 separates mining prevhash and future job messages, allowing faster job distribution. This minimizes latency and increases efficiency in starting new block mining.
Binary Encoding:SV2's binary encoding is optimized for efficient computation and networking, significantly reducing message size compared to Stratum V1's JSON-RPC.
Man-in-the-Middle Attack Prevention:SV2 ensures data integrity and confidentiality with robust encryption (AEAD), protecting against hashrate hijacking and maintaining miner-pool privacy.
Eliminate Empty Block Mining:SV2's efficient job distribution eliminates the incentive to mine empty blocks, reducing the likelihood of empty block propagation in the network.
Job Selection:SV2 allows miners to choose their work, decentralizing mining and limiting pools' ability to censor transactions. This enhances Bitcoin's censorship resistance.
Header-Only Mining:SV2's header-only mining protocol reduces bandwidth and CPU load, optimizing for speed and efficiency in large-scale mining operations.
Multiplexing:SV2 enables multiple communication channels over a single connection, reducing infrastructure complexity and costs.
Implicit Work Subscription:SV2 assumes implicit job assignment requests upon channel opening, eliminating unnecessary data transfers and improving protocol efficiency.
Native Version Rolling:SV2 natively supports version rolling, enhancing the mining process by extending the search space and reducing new job distributions.
Zero-time Backend Switching:SV2 facilitates efficient backend switching and job allocation from different pools, optimizing complex mining setups.
Same Connection - Different Jobs:SV2's multiplexing allows transmission of data for different jobs over a single connection, reducing the need for multiple connections and simplifying infrastructure.
Source: Stratumprotocol.org