Move hash types to where they live#2178
Conversation
Kixunil
left a comment
There was a problem hiding this comment.
Hell yeah! I wanted this a long time ago and getting rid of hash_types module.
8eb07a6 to
755d71a
Compare
You inspired me. I rebased, and added a few additional patches fully gutting the |
apoelstra
left a comment
There was a problem hiding this comment.
ACK 755d71afcc9e27b847d74f85ed61d8f51403f3ae
755d71a to
97f44d7
Compare
|
Rebased, no other changes. |
apoelstra
left a comment
There was a problem hiding this comment.
ACK 97f44d71591e62e4c7d9b960eada74a2f358a329
|
Gentle bump please crew. |
97f44d7 to
7d51615
Compare
|
Rebased, includes some fixes to things that either were broken or got borken during rebase. Note:
|
7d51615 to
1bc2e10
Compare
apoelstra
left a comment
There was a problem hiding this comment.
ACK 1bc2e10e635391b9a543ccf174c932e76fe1929e
We would like all the various hash types to be defined where they rightly live instead of in the `hash_types` module. Move the block hash types to the `block` module. While moving, add full stops to the rustdoc of each hash. Re-export _all four_ types from lib.rs (previously `WitnessMerkleNode` was not re-exported).
We would like all the various hash types to be defined where they rightly live instead of in the `hash_types` module. Move transaction hash types to the `transaction` module.
We would like all the various hash types to be defined where they rightly live instead of in the `hash_types` module. Move the BIP-158 filter hash types to the `bip158` module.
We are emptying the `hash_types` module. `impl_hashencode!` is an internal macro, as such it can live in the `internal_macros` module.
We are emptying the `hash_types` module. `impl_asref_push_bytes!` is an internal macro, as such it can live in the `internal_macros` module. While we are at it import the macro and call it without any qualifying path, this is typical for our usage of other internals/internal_macros usage.
The `hash_types` module has been emptied, it now contains only deprecated re-exports. Add a rustdoc comment stating as such.
1bc2e10 to
801c72e
Compare
|
Rebased and removed the trivial docs "fix", it wasn't really worth doing. |
Move hash types out of
hash_typesand into the modules where they are primarily used. Adds deprecated re-export so this is not a breaking change.Is an alternate solution to #2072
Resolves: #2072