Closed filip26 closed 2 years ago
Relevant source line: https://github.com/digitalbazaar/cborld/blob/main/lib/encode.js#L38-L40
Which is correct ... the spec or the source?
Other documentation shared with the JSON-LD WG refers to uncompressed CBOR-LD as using tag 1280 (0x0500)
:
https://lists.w3.org/Archives/Public/public-json-ld-wg/2020Jul/att-0004/Introduction_to_CBOR-LD.pdf
It could be that the spec text should be changed.
https://github.com/digitalbazaar/cbor-ld-spec/pull/13 will fix the spec.
This was fixed in the spec. Thanks!
Hi, the first three bytes generated by the library are
0xd90501
for compressed output, but the specification defines0xd95001
see Compressed CBOR-LD Buffer Algorithm