Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Implement Hash::engine() for hash newtypes#93

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
stevenroose:newtype-engine
Oct 7, 2020
Merged

Implement Hash::engine() for hash newtypes#93
apoelstra merged 1 commit intorust-bitcoin:masterfrom
stevenroose:newtype-engine

Conversation

@stevenroose
Copy link
Copy Markdown
Collaborator

Instead of the default implementation of Engine::default().

This is needed to make newtypes with with sha256t tagged hashes for taproot.

Instead of the default implementation of `Engine::default()`.
@stevenroose
Copy link
Copy Markdown
Collaborator Author

Strictly this is a breaking change, but it's only breaking for users of the tagged hashes, which I think there's none. Anyway, I'm patient on this one, because it's only relevant for taproot anyway.

@stevenroose stevenroose added changes api Something that changes the api (probably requiring release) breaking breaking API change and removed changes api Something that changes the api (probably requiring release) labels Oct 7, 2020
@apoelstra
Copy link
Copy Markdown
Member

I disagree that this is a breaking change. There is a visible change in the behavior of the engine() method on these hashes, but the old behavior was clearly wrong (and anyone using this API must have just been working around the issue somehow).

@apoelstra apoelstra merged commit d032b65 into rust-bitcoin:master Oct 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking breaking API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants