multiformats / rust-multihash

multihash implementation in Rust
https://github.com/multiformats/multihash
Other
153 stars 59 forks source link

Using RustCrypto `Digest` trait directly #179

Open vmx opened 2 years ago

vmx commented 2 years ago

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.

thomaseizinger commented 1 year ago

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