-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix hash type and Vec<u8> tests #61
Conversation
Needs conflict resolve. |
@TheCharlatan @h4sh3d so I spent a looot of time playing around and reading the code from However, @h4sh3d if you think that it makes sense to implement |
@h4sh3d done |
I think having Can you open an issue on monero-rs for |
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
* feat(HashType)!: add AsRef as a trait bound, reimplemeting bytes() * fix(HashType)!: fix HashType implementation for Vec<u8> * docs(CHANGELOG): update CHANGELOG to reflect changes
This PR is totally open for discussion, since I am not sure if those changes are actually necessary.
This builds upon #59. I will rebase the commits once #59 is merged.
Now,
from_str
for Vec allows strings starting with0x
.bytes
now uses theAsRef
implementation. This potentially increases the number of types that can use the default implementation, but also makes things a bit clear.