shepmaster/twox-hash

Implement digest::DynDigest

raspi opened this issue · 1 comments

raspi commented

According to https://crates.io/crates/digest/reverse_dependencies this crate uses digest crate.

Would it be possible to implement digest::DynDigest trait so that this hasher could be used in for example HashMaps which uses HashMap<&str, Box<dyn digest::DynDigest>> where you can iterate through multiple different hashers?

I believe that can be supported. Feel free to submit a PR (ideally for all the versions of digest we support / that have DynDigest)