Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to bitcoin's version of HKDF #92

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Nov 12, 2024

Our implementation of HKDF was pushed down into bitcoin, but has only been published in bitcoin_hashes so far, not in a new version of bitcoin yet. Once bitcoin is updated we can depend on the re-exported HKDF there and drop the bitcoin_hashes dependency.

@rustaceanrob
Copy link
Collaborator

rustaceanrob commented Nov 12, 2024

Looks like that CI failure is coming from hex-conservative from use std::io. Is hex a feature on bitcoin_hashes or is this potentially a boof?

@rustaceanrob
Copy link
Collaborator

rustaceanrob commented Nov 12, 2024

Yeah, so I am seeing hex/std is a default feature on bitcoin_hashes. Think we can probably roll with default-features=false and have no problems.

protocol/Cargo.toml Outdated Show resolved Hide resolved
* Our implementation of HKDF was pushed down into bitcoin, but has
only been published in bitcoin_hashes, not in a new version of bitcoin
yet. Once bitcoin is updated we can depend on the re-exported HKDF
there.
@rustaceanrob
Copy link
Collaborator

Nice. For future reference, I think re-exporting a crate on a new minor version also requires a minor version from rust-bitcoin (i.e. 0.33). And with the transition to primitives and such, I think they are gunning straight for 1.0.0, so we might not see this in bitcoin for a while. Users will have to deal with two versions of hashes in their build, but I think duplicating code is worse

@rustaceanrob
Copy link
Collaborator

ACK 6421e2a

@rustaceanrob rustaceanrob merged commit f7df81f into rust-bitcoin:main Nov 12, 2024
7 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.

2 participants