Skip to content

Conversation

@8144225309
Copy link
Contributor

@8144225309 8144225309 commented Jan 22, 2026

Replace hex crate with bitcoin_hashes::hex::{FromHex, ToHex} traits
already available through existing dependency.

  • hex::decode()Vec::<u8>::from_hex()
  • hex::encode().to_hex()
  • Error types updated to wrap bitcoin_hashes::Error

Closes #375

@8144225309 8144225309 changed the title Remove hex crate dependency from sv1 sv1: remove third-party hex crate dependency Jan 22, 2026
@plebhash
Copy link
Member

LGTM

@8144225309 can you please rebase against main?

(ideally an actual rebase, not merging with an extra commit)

Replace hex crate with bitcoin_hashes::hex traits (FromHex, ToHex)
which are already available via the existing bitcoin_hashes dependency.

This removes a 3rd-party dependency without adding new code to maintain.
@8144225309 8144225309 force-pushed the remove-hex-crate-sv1 branch from 59dada5 to a2643e9 Compare January 24, 2026 03:12
@plebhash plebhash merged commit 5ef0bb4 into stratum-mining:main Jan 24, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rm 3rd-party hex crate dependency

2 participants