Skip to content

added canonical cbor map key sorting#50

Closed
stoneburner wants to merge 1 commit into
valpackett:masterfrom
stoneburner:master
Closed

added canonical cbor map key sorting#50
stoneburner wants to merge 1 commit into
valpackett:masterfrom
stoneburner:master

Conversation

@stoneburner

Copy link
Copy Markdown

this adds the ability to order the keys of a map according to the CBOR RFC:
https://tools.ietf.org/html/rfc7049#section-3.9

its now its own function, maybe its ok to replace the default implementation?

(I noticed that many other CBOR library do this sorting i.e. https://github.com/c-rack/cbor-java/blob/master/src/main/java/co/nstant/in/cbor/encoder/MapEncoder.java#L46)

@hamchapman

Copy link
Copy Markdown
Collaborator

@hamchapman hamchapman closed this Dec 13, 2025
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

Successfully merging this pull request may close these issues.

2 participants