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

Patch the bitcoin_hashes dependency #575

Closed
wants to merge 2 commits into from

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Jan 28, 2023

Currently we have a hole in our dependency graph that is making it impossible to patch bitcoin_hashes with breaking changes.

bitcoin -> secp -> hashes
bitcoin -> hashes

Make secp256k1 depend on a dev version of hashes - done as two separate patches, one for the initial import of hashes into rust-bitcoin and one for the current version.

With this applied, when patching hashes with a breaking change, we will be able to build the code still.

Currently we have a hole in our dependency graph that is making it
impossible to patch `bitcoin_hashes` with breaking changes.

  bitcoin -> secp -> hashes
          -> hashes

Make `secp256k1` depend on the first commit that imported
`bitcoin_hashes` into `rust-bitcoin`. No code changes required.

With this applied, when patching `hashes` with a breaking change,
we will be able to build the code still.
Depend on the commit from current master branch of `rust-bitcoin` for
the `bitcoin_hashes` dependency.

Requires a change to dereference using `as_ref` to get a reference to a
byte slice.
@tcharding
Copy link
Member Author

Needs to go on top of #576

@tcharding
Copy link
Member Author

Closing because we have a better approach: rust-bitcoin/rust-bitcoin#1553 (comment)

@tcharding tcharding closed this Jan 30, 2023
@tcharding tcharding deleted the 01-29-git-deps branch October 9, 2023 22:10
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.

1 participant