The SV2 Reference Implementation (opens new window) provides:
A robust set of Stratum V2 (SV2) primitives as Rust library crates for anyone to expand the protocol or implement a role. For example:
The above Rust primitives as a C library available for use in other languages via FFI.
A set of helpers built on top of the above primitives and the external Bitcoin-related Rust crates for flexible implementations of the SV2 roles.
An open-source implementation of a SV2 proxy for miners.
An open-source implementation of a SV2 pool for mining pool operators.
The Reference Implementation's modular design supports use in 3rd party software and is available under an MIT open-source license. However, the implementation itself supports several native use-cases for miners and pools:
SV1 Miners can use the proxy (roles/sv2/mining-proxy) to connect with a SV2-compatible pool.
SV1 mining farms mining to a SV2-compatible pool gain some of the security and efficiency improvements SV2 offers over Stratum V1 (SV1). The SV1<->SV2 miner proxy does not support all the features of SV2, but works as a temporary measure before upgrading completely to SV2-compatible firmware. (The SV1<->SV2 translation proxy implementation is a work in progress.)
Pools supporting SV2 can deploy the open source binary crate (roles/pool) to offer their clients (miners participating in said pool) an SV2-compatible pool.
The Rust helper library provides a suite of tools for mining pools to build custom SV2 compatible pool implementations.
The C library provides a set of FFI bindings to the Rust helper library for miners to integrate SV2 into their existing firmware stack.
For further detailed documentation on how to deploy the reference implementation for one of the above use-cases or integrate, see the README on Github (opens new window) or join our developer community on Discord (opens new window).