ipfs / ipfs/go-cid

Should the JSON represenetation of CID always be formatted as links.

Open
#76 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
171
Forks
50
PR merge metrics
No merged PRs in 30d

Description

My understanding is that the idea behind `{"/": }` is when Cid are represented as links. Should they _always_ be serialized like this. In many cases a Cid acts more as an identifier than a link.

I see it just adding additional overhead to the JSON stream, espacally when returning a list of CIDs

Also it seams that even the idea of encoding them this was in conversational, at least based on @Stebalien comments in https://github.com/ipld/specs/pull/70 when he said:
> I'm really not happy baking this into IPLD. {'/': ...} was a hack to get JSON working.
>
> This will need some strong arguments/motivations.

and

> this was never intended to be the canonical representation. It was a hack to get JSON working.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.