You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.
Describe the bug
TL;DR Ipld::Map does not strictly order keys, leading to inconsistency in content hashing between this implementation and go-ipfs (and probably others).
Describe the bug
TL;DR
Ipld::Map
does not strictly order keys, leading to inconsistency in content hashing between this implementation andgo-ipfs
(and probably others).Strictness errata for DAG-CBOR, including explicit key order, is detailed here: https://github.com/ipld/ipld/blob/master/specs/codecs/dag-cbor/spec.md#:~:text=The%20keys%20in,order%20sorts%20earlier.
To Reproduce
Output with current (incorrect) implementation:
Expected behavior
Expected output (created with patched implementation):
Environment (please complete the following information)
stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)
The text was updated successfully, but these errors were encountered: