Skip to content
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

deterministic/canonical encoding #299

Open
mimoo opened this issue Feb 23, 2022 · 1 comment
Open

deterministic/canonical encoding #299

mimoo opened this issue Feb 23, 2022 · 1 comment

Comments

@mimoo
Copy link

mimoo commented Feb 23, 2022

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?

@kornelski
Copy link
Collaborator

There's no guarantee for hashmaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants