Skip to content

Support for deterministically encoded CBOR RFC 8949 Section 4.2 #3021

Open
@sanket1729

Description

@sanket1729

What is your use-case and why do you need this feature?

I want to have canonical encodings to cross-test kotlin implementation of my program with implementations from other languages. Are there any plans to support Deterministic encoding of cbor as described in https://www.rfc-editor.org/rfc/rfc8949.html#section-4.2?

Describe the solution you'd like

Either a annotation or function APIs in serializers that makes this easy to use.

Related question, are the integers guaranteed to be minimally encoded? If I sort the keys in cbor map, am I guaranteed to follow 8949 spec?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions