Skip to content

Remove repetition from sha256t_hash_newtype macro#2857

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:06-11-disable-repitition
Jun 11, 2024
Merged

Remove repetition from sha256t_hash_newtype macro#2857
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:06-11-disable-repitition

Conversation

@tcharding
Copy link
Copy Markdown
Member

The sha256t_hash_newtype macro is hard to reason about because we allow repetition so which tag goes with which type is slightly obscure.

Remove repetition and call the macro three times.

Internal change in bitcoin, API change in hashes.

Fix #2811

The `sha256t_hash_newtype` macro is hard to reason about because we
allow repetition so which tag goes with which type is slightly obscure.

Remove repetition and call the macro three times.

Internal change in `bitcoin`, API change in `hashes`.
@github-actions github-actions bot added C-bitcoin PRs modifying the bitcoin crate C-hashes PRs modifying the hashes crate labels Jun 11, 2024
Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8aa893e nice, small diff

@apoelstra apoelstra merged commit cd76830 into rust-bitcoin:master Jun 11, 2024
@tcharding tcharding deleted the 06-11-disable-repitition branch June 11, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bitcoin PRs modifying the bitcoin crate C-hashes PRs modifying the hashes crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The sha256t_hash_newtype! call in the taproot module is unclear

2 participants