rust-multihash
rust-multihash copied to clipboard
Using RustCrypto `Digest` trait directly
Most hashers implement RustCrypto's Digest trait. Once https://github.com/RustCrypto/hashes/pull/228 lands all hashers except for strobe implement the Digest trait. We could then think about using the Digest trait directly instead of having our own custom hashers defined. Probably we would still export some type aliases for convenience/backwards compatibility.
Cross-referencing a discussion: https://github.com/multiformats/rust-multihash/pull/272#discussion_r1144660037