Skip to content

Conversation

koivunej
Copy link
Contributor

@koivunej koivunej commented Apr 7, 2020

The zero byte prefix inside the length delimited byte array was not omitted or added.

@koivunej koivunej changed the title Fix cid serde Fix cbor cid serde Apr 7, 2020
@koivunej koivunej mentioned this pull request Apr 7, 2020
13 tasks
@aphelionz
Copy link
Contributor

LGTM

@koivunej koivunej requested a review from dvc94ch April 8, 2020 06:31
@dvc94ch
Copy link
Contributor

dvc94ch commented Apr 8, 2020

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?

@vmx
Copy link
Member

vmx commented Apr 8, 2020

@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 0x0 prefix.

@dvc94ch
Copy link
Contributor

dvc94ch commented Apr 8, 2020

I'm pretty sure that section was added after implementing this version. We'll have to live with "historical reasons" then...

@aphelionz
Copy link
Contributor

Now that that convo is resolved, ok to merge @dvc94ch ?

@aphelionz aphelionz merged commit b2286c5 into ipld:master Apr 8, 2020
@koivunej koivunej deleted the cbor_serde_cid branch April 8, 2020 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants