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

Preferred serialization/Deterministic encoding #104

Open
cyberphone opened this issue Aug 18, 2024 · 1 comment
Open

Preferred serialization/Deterministic encoding #104

cyberphone opened this issue Aug 18, 2024 · 1 comment

Comments

@cyberphone
Copy link

cyberphone commented Aug 18, 2024

Hello,
You mention using https://cbor.me as a reference.

It is possible that I haven't studied your code thoroughly, but it appears that you don't perform "Preferred Serialization" or "Deterministic Encoding". This may be a future request since it is currently in the IETF for standardization:
https://datatracker.ietf.org/doc/draft-ietf-cbor-cde/

I have implemented this for JavaScript:
https://github.com/cyberphone/CBOR.js#cborjs

@mikekelly
Copy link

It's funny you should mention this. I just ran into this problem using SwiftCBOR - it was inconsistently serializing maps which was causing problems with a message signing protocol.

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