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

BIP324 HKDF implementation #4

Merged

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Mar 1, 2024

Dropping the sha2 and hkdf dependencies in favor of an internal implementation for HKDF based on RFC5869 and bitcoin_hashes. This is limited to BIP324 requirements, so hardcoded with SHA256. The interface is also not as flexible as RFC5869 allows.

nyonson added 7 commits March 1, 2024 15:20
* Dropping the sha2 and hkdf deps in favor of internal implemenation,
but this has a long way to go. The packet tests cover the *exact*
path for now though, so actually gives good coverage.
@nyonson nyonson changed the title Bare (very bare) HKDF implementation BIP324 HKDF implementation Mar 4, 2024
@rustaceanrob rustaceanrob merged commit 2c8adcd into rust-bitcoin:main Mar 4, 2024
3 checks passed
@rustaceanrob
Copy link
Collaborator

Boom! Merged! Nice job

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