const_sv2

Crates.ioconst_sv2
lib.rsconst_sv2
version2.1.0
sourcesrc
created_at2021-06-14 17:08:27.805609
updated_at2024-10-17 12:52:20.951188
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,648
(Fi3)

documentation

https://docs.rs/const_sv2

README

const_sv2

crates.io docs.rs rustc+ license

const_sv2 is a Rust 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: 1900

cargo fmt