9 releases (4 stable)
new 2.0.0 | Dec 27, 2024 |
---|---|
1.0.2 | Aug 9, 2024 |
1.0.0 | Mar 22, 2024 |
0.1.6 | Feb 15, 2024 |
0.1.0 | Jun 14, 2021 |
#12 in #stratum
168 downloads per month
Used in 8 crates
(2 directly)
86KB
1.5K
SLoC
template_distribution_sv2
template_distribution_sv2
is a Rust #![no_std]
crate that implements a set of messages defined in the
Template Distribution Protocol of Stratum V2. The Template Distribution protocol can be used to
receive updates of the block templates to use in mining.
For further information about the messages, please refer to Stratum V2 documentation - Job Distribution.
Build Options
This crate can be built with the following features:
with_serde
: Enables support for serialization and deserialization using Serde.prop_test
: Enables support for property testing.
Note that with_serde
feature flag is only used for the Message Generator, and deprecated for any
other kind of usage. It will likely be fully deprecated in the future.
Usage
To include this crate in your project, run:
$ cargo add template_distribution_sv2
Dependencies
~0.3–1MB
~16K SLoC