ipld / specs

Content-addressed, authenticated, immutable data structures
Other
592 stars 108 forks source link

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

Open tysonzero opened 3 years ago

tysonzero commented 3 years ago

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

rvagg commented 3 years ago

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.