-
Notifications
You must be signed in to change notification settings - Fork 165
Strict ordering for DAG-CBOR-encoded map keys #493
Conversation
9b3d99d
to
4a9b110
Compare
Thanks for reporting and offering a fix for this. The build is currently broken, will try to get to fixing that in near future. I'm thinking the eventual solution is to have a newtype |
Maybe it's because of RFC 8949 includes the sorting on the cbor serialized keys which start with the length information. Now it makes sense. @cdata could you rebase this on top of master? The build was broken but now it should work. |
4a9b110
to
8e0d5d5
Compare
Yes, I believe that analysis of the problem is correct. The change has been rebased onto the latest |
Co-authored-by: Joonas Koivunen <[email protected]>
Co-authored-by: Joonas Koivunen <[email protected]>
Thank you for the fix! bors r+ |
Build succeeded: |
This change proposes a fix for #492 .
Ipld::Map
keys are sorted according to the strictness guidelines in the DAG-CBOR spec when encoding them as DAG-CBOR.