3Hren/msgpack-rust

deterministic/canonical encoding

mimoo opened this issue · 1 comments

mimoo commented

Hello. I'm wondering, does this library provides deterministic/canonical encoding? It is not completely clear to me that the same struct always encodes to the same series of bytes. As the encoding is untagged, from what I understand, this should only be an issue for hashmaps and the order in which their entries are encoded. Does this sound right?

There's no guarantee for hashmaps.