Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Why is the reified form of IPLD Schemas "generally presented as JSON" instead of IPLD itself? #365

Open
tysonzero opened this issue Apr 22, 2021 · 1 comment

Comments

@tysonzero
Copy link

It seems like IPLD Schemas could be stored and manipulated as IPLD Data Model objects, and serialized into arbitrary codecs (likely DAG-CBOR).

@rvagg
Copy link
Member

rvagg commented Apr 22, 2021

Yerp, you can think of the JSON as DAG-JSON - it's essentially how we think about it. We just don't have a need to represent CIDs or Bytes so in this case JSON == DAG-JSON. But yes, it's intended to be data model compatible and it could just as easily be DAG-CBOR, it's just that it's difficult to read DAG-CBOR so we don't bother presenting it that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants