Closed azban closed 5 years ago
From<Vec<u8>> for CryptoHash is confusing because it silently truncates a longer vector.. the hash function is actually what i was looking for, but this isn't really clear
From<Vec<u8>> for CryptoHash
hash
cc: @ilblackdragon , @bowenwang1996
i think signature interface also needs a little polish.. froms and new on everything seems wonky and panics rather than returning results
What's the plan for this? Should we implement TryFrom instead?
TryFrom
From<Vec<u8>> for CryptoHash
is confusing because it silently truncates a longer vector.. thehash
function is actually what i was looking for, but this isn't really clearcc: @ilblackdragon , @bowenwang1996