const_sv2
WARNING: this crate has been deprecated and is no longer maintained.
const_sv2 is a Rust no_std crate that provides essential constants for the Sv2 (Stratum V2) protocol. These constants are crucial for message framing, encryption, and protocol-specific identifiers across various Sv2 components, including Mining, Job Declaration, and Template Distribution protocols.
Key Capabilities
- Protocol Constants: Define key protocol discriminants, message types, and sizes for the Sv2 binary protocol.
- Encryption Support: Includes constants for encryption using
ChaChaPolyandElligatorSwiftencoding. - Channel Bits: Defines whether specific messages are associated with a channel, simplifying protocol handling.
- Modular: Supports a
no_stdenvironment, enabling use in embedded systems or environments without a standard library.
Usage
To include this crate in your project, run: