const_sv2

Crates.ioconst_sv2
lib.rsconst_sv2
version4.0.1
created_at2021-06-14 17:08:27.805609+00
updated_at2025-07-09 17:59:05.492793+00
descriptionThis crate holds all of the shared constants used across the different Stratum V2 protocols and roles crates
homepagehttps://stratumprotocol.org
repositoryhttps://github.com/stratum-mining/stratum
max_upload_size
id410006
size16,419
SV2-bot (SV2-bot)

documentation

https://docs.rs/const_sv2

README

const_sv2

WARNING: this crate has been deprecated and is no longer maintained.

crates.io docs.rs rustc+ license

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 ChaChaPoly and ElligatorSwift encoding.
  • Channel Bits: Defines whether specific messages are associated with a channel, simplifying protocol handling.
  • Modular: Supports a no_std environment, enabling use in embedded systems or environments without a standard library.

Usage

To include this crate in your project, run:

cargo add const_sv2
Commit count: 3337

cargo fmt