-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into framing-sv2-doc-cmt-syntax-update
- Loading branch information
Showing
63 changed files
with
563 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,9 @@ on: | |
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
name: Clippy Lint | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,9 @@ on: | |
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
name: Rustfmt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,9 @@ on: | |
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
name: MSRV 1.75 Check | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,9 @@ on: | |
push: | ||
branches: | ||
- "main" | ||
- "dev" | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "dev" | ||
|
||
jobs: | ||
semver-check: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "interop-cpp" | ||
version = "0.1.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
publish = false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "ping_pong_with_noise" | ||
version = "0.1.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
publish = false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "ping_pong_without_noise" | ||
version = "0.1.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
publish = false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "binary_sv2" | ||
version = "1.2.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
readme = "README.md" | ||
description = "Sv2 data format" | ||
license = "MIT" | ||
documentation = "https://docs.rs/binary_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "binary_codec_sv2" | ||
version = "1.2.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
readme = "README.md" | ||
description = "Sv2 data format" | ||
license = "MIT" | ||
documentation = "https://docs.rs/binary_codec_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "derive_codec_sv2" | ||
version = "1.1.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
readme = "README.md" | ||
description = "Derive macro for Sv2 binary format serializer and deserializer" | ||
license = "MIT" | ||
documentation = "https://docs.rs/derive_codec_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "serde_sv2" | ||
version = "1.0.1" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
readme = "README.md" | ||
description = "Serlializer and Deserializer for Stratum V2 data format" | ||
license = "MIT" | ||
documentation = "https://docs.rs/serde_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "codec_sv2" | ||
version = "1.2.1" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
readme = "README.md" | ||
description = "Sv2 data format" | ||
license = "MIT" | ||
documentation = "https://docs.rs/codec_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
[dependencies] | ||
serde = { version = "1.0.89", default-features = false, optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[package] | ||
name = "const_sv2" | ||
version = "2.0.0" | ||
authors = ["fi3 <[email protected]>"] | ||
authors = ["The Stratum V2 Developers"] | ||
edition = "2018" | ||
description = "Sv2 constatnts" | ||
license = "MIT" | ||
readme = "README.md" | ||
description = "This crate holds all of the shared constants used across the different Stratum V2 protocols and roles crates" | ||
documentation = "https://docs.rs/const_sv2" | ||
license = "MIT + Apache-2.0" | ||
repository = "https://github.com/stratum-mining/stratum" | ||
homepage = "https://stratumprotocol.org" | ||
keywords = ["stratum", "mining", "bitcoin", "protocol"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# const_sv2 | ||
|
||
[![crates.io](https://img.shields.io/crates/v/const_sv2.svg)](https://crates.io/crates/const_sv2) | ||
[![docs.rs](https://docs.rs/const_sv2/badge.svg)](https://docs.rs/const_sv2) | ||
[![rustc+](https://img.shields.io/badge/rustc-1.75.0%2B-lightgrey.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html) | ||
[![license](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](https://github.com/stratum-mining/stratum/blob/main/LICENSE.md) | ||
|
||
`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: | ||
|
||
```sh | ||
cargo add const_sv2 |
Oops, something went wrong.