Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sv2/binary-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "binary_sv2"
version = "5.0.0"
version = "5.1.0"
authors = ["The Stratum V2 Developers"]
edition = "2021"
readme = "README.md"
Expand Down
9 changes: 9 additions & 0 deletions sv2/binary-sv2/src/datatypes/non_copy_data_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,15 @@ impl From<[u8; 32]> for U256<'_> {
}
}

impl Into<[u8; 32]> for U256<'_> {
fn into(self) -> [u8; 32] {
let inner = self.inner_as_ref();
let mut arr = [0u8; 32];
arr.copy_from_slice(inner);
arr
}
}

#[cfg(feature = "prop_test")]
impl<'a> U256<'a> {
pub fn from_gen(g: &mut Gen) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion sv2/channels-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../binary-sv2", version = "^5.0.0" }
binary_sv2 = { path = "../binary-sv2", version = "^5.1.0" }
common_messages_sv2 = { path = "../subprotocols/common-messages", version = "^6.0.0" }
mining_sv2 = { path = "../subprotocols/mining", version = "^6.0.0" }
template_distribution_sv2 = { path = "../subprotocols/template-distribution", version = "^4.0.0" }
Expand Down
Loading
Loading