[Openid-specs-fapi] Next iteration on Deterministic CBOR

Anders Rundgren anders.rundgren.net at gmail.com
Fri Apr 7 05:27:37 UTC 2023


I have now finished the formalization of CBOR deterministic encoding:
https://cyberphone.github.io/javaapi/org/webpki/cbor/package-summary.html#deterministic-encoding

My take on the matter is similar to I-JSON (the de-facto standard for interoperable JSON), including the use of diagnostic notation as a text-based CBOR alternative while still maintaining determinism for text-binary-text "roundtrips":
https://cyberphone.github.io/javaapi/org/webpki/cbor/package-summary.html#diagnostic-notation

This combination makes CBOR suitable as a replacement for JSON by offering determinism, rich data, comment support, and binary encoding.

The specification is (deliberately) very close to Carsten Bormann's CBOR Playground:
https://cbor.me/

The only real innovation (well...), is the introduction of URLs as Object Ids:
https://cyberphone.github.io/javaapi/org/webpki/cbor/doc-files/typed-objects.html

Anders



More information about the Openid-specs-fapi mailing list