-
Notifications
You must be signed in to change notification settings - Fork 41
Fix cbor cid serde #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM |
I haven't understood the why yet. Is this part of the cbor or the dag cbor spec? Or is this a bug in the go implementation? |
@dvc94ch Part of the DagCBOR spec as linked in the source: https://github.com/ipld/specs/blob/51eb2f682f554b726021f34398843f8edf97bbd0/block-layer/codecs/dag-cbor.md#links. The CID is Multibase encoded, hence has a |
I'm pretty sure that section was added after implementing this version. We'll have to live with "historical reasons" then... |
Now that that convo is resolved, ok to merge @dvc94ch ? |
The zero byte prefix inside the length delimited byte array was not omitted or added.