#bitcoin #mining #stratum #bitcoin-protocols

deprecated const_sv2

This crate holds all of the shared constants used across the different Stratum V2 protocols and roles crates

9 releases (stable)

4.0.1 Jul 9, 2025
4.0.0 Mar 28, 2025
3.0.0 Dec 27, 2024
2.1.0 Oct 17, 2024
0.1.0 Jun 14, 2021

#39 in #stratum

Download history 142/week @ 2025-06-14 127/week @ 2025-06-21 104/week @ 2025-06-28 210/week @ 2025-07-05 86/week @ 2025-07-12 38/week @ 2025-07-19 15/week @ 2025-07-26 5/week @ 2025-08-02 6/week @ 2025-08-09 39/week @ 2025-08-16 74/week @ 2025-08-23 88/week @ 2025-08-30 106/week @ 2025-09-06 89/week @ 2025-09-13 55/week @ 2025-09-20 83/week @ 2025-09-27

360 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

17KB
114 lines

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

No runtime deps