Closed d70-t closed 2 years ago
According to the spec
The keys in every map must be sorted length-first by the byte representation of the string keys, where: If two keys have different lengths, the shorter one sorts earlier; If two keys have the same length, the one with the lower value in (byte-wise) lexical order sorts earlier.
The keys in every map must be sorted length-first by the byte representation of the string keys, where:
Previous to this PR, maps have been sorted purely in byte-wise lexical order, which is incorrect if keys are not of equal length.
Previous to this PR, DAG-CBOR which was created using go-ipfs v0.11.0 could not be read using dag-cbor (this library).
dag-cbor
According to the spec
Previous to this PR, maps have been sorted purely in byte-wise lexical order, which is incorrect if keys are not of equal length.
Previous to this PR, DAG-CBOR which was created using go-ipfs v0.11.0 could not be read using
dag-cbor
(this library).