rust-multihash icon indicating copy to clipboard operation
rust-multihash copied to clipboard

Using RustCrypto `Digest` trait directly

Open vmx opened this issue 3 years ago • 1 comments

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.

vmx avatar Jan 27 '22 11:01 vmx

Cross-referencing a discussion: https://github.com/multiformats/rust-multihash/pull/272#discussion_r1144660037

thomaseizinger avatar Mar 22 '23 13:03 thomaseizinger