Crates.io | roles_logic_sv2 |
lib.rs | roles_logic_sv2 |
version | 4.0.0 |
created_at | 2024-02-15 15:48:06.31391+00 |
updated_at | 2025-09-25 00:29:18.441521+00 |
description | Common handlers for use within SV2 roles |
homepage | https://stratumprotocol.org |
repository | https://github.com/stratum-mining/stratum |
max_upload_size | |
id | 1141274 |
size | 145,532 |
roles_logic_sv2
roles_logic_sv2
provides the core logic and utilities for implementing roles in the Stratum V2 (Sv2) protocol, such as miners, pools, and proxies. It abstracts message handling, channel management, job creation, and routing logic, enabling efficient and secure communication across upstream and downstream connections.
binary_sv2
.To include this crate in your project, run:
cargo add roles_logic_sv2
This crate can be built with the following feature flags:
prop_test
: Enables property-based testing features for template distribution logic, leveraging dependencies' testing capabilities such as template_distribution_sv2
crate.disable_nopanic
: Disables the nopanic logic in scenarios where code coverage tools might conflict with it.