-
Notifications
You must be signed in to change notification settings - Fork 286
Derive Hash for Signature #441
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
Conversation
In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`.
I wonder what guarantees |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ef7f197
but would like another ack before merging.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ef7f197
Wow, thanks for the lesson. |
In preparation for deriving
Hash
in miniscript, deriveHash
on theecdsa::Signature
.ref: rust-bitcoin/rust-miniscript#226