Derive Hash for Signature#441
Conversation
In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`.
|
I wonder what guarantees |
|
Am I understanding you correctly that you think the following workflow is broken? A: little-endian machine
If the assertion in (8) is not true doesn't that basically break all portability for any data structure that uses |
|
Whatever direction we take, should this PR unify the derives on |
From: https://doc.rust-lang.org/std/hash/trait.Hash.html#portability |
|
Wow, thanks for the lesson. |
ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b Derive Hash for Signature (Tobin C. Harding) Pull request description: In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`. ref: rust-bitcoin/rust-miniscript#226 ACKs for top commit: apoelstra: ACK ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b elichai: ACK ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b Tree-SHA512: 7313f59971444ae18611adbafe86a09478eddd7357f2b7f3ad3bb1761609b6358b156975086f6c318eb2777018b7b2f44386321108939acbcf2d0a522e7e208e
ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b Derive Hash for Signature (Tobin C. Harding) Pull request description: In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`. ref: rust-bitcoin/rust-miniscript#226 ACKs for top commit: apoelstra: ACK ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b elichai: ACK ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b Tree-SHA512: 7313f59971444ae18611adbafe86a09478eddd7357f2b7f3ad3bb1761609b6358b156975086f6c318eb2777018b7b2f44386321108939acbcf2d0a522e7e208e
In preparation for deriving
Hashin miniscript, deriveHashon theecdsa::Signature.ref: rust-bitcoin/rust-miniscript#226