-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crate for cryptographically hashing structs #2
Comments
Sorry for cross-posting from RustCrypto/traits#13, just noticed it has been closed: Could you post a brief recap of the serde-related discussion here as well? Is |
I think now that a The personality traits would have to include potentially orthogonal answers to:
All this could make serde-based hashing too cumbersome to use, in comparison to whipping up a |
Here's my attempt at it: https://github.com/mzabaluev/digest-hash-rs Not publishing on crates.io yet, so as to not spoil the namespace in case the Rust Crypto team finds the crate unsuitable. I'd like to get a review and some sort of a yes/no survey some time soon. Be kind :) |
I think it will be hard to compete with I am not that familiar with this problem, so @tarcieri is the right person to discuss it. I hope he will add his input. |
As I tried to explain in the README, a Consider this scenario: // crate a
#[derive(Serialize)]
pub struct A {
foo: char
} // crate b
extern crate a;
#[derive(Serialize)]
pub struct B {
bar: a::A
} The application wishing to calculate a hash of |
Originally posted as RustCrypto/utils#2 (comment)
I have published my crate as digest-hash. |
In short: it would be good to have a way a standard way to hash structures. Probably the best approach would be to utilize
serde
for this.See this issue for detailed discussion.
The text was updated successfully, but these errors were encountered: