merkle.rs
merkle.rs copied to clipboard
Serialize the hash algorithm name in protobuf.
I think this idea applies not only to serde, but to protobuf, too: https://github.com/SpinResearch/merkle.rs/issues/30#issuecomment-389130803
Serializing the hash algorithm as a string like "SHA256", and on deserialization picking the appropriate constant from ring would be convenient.