specs
specs copied to clipboard
Why is the reified form of IPLD Schemas "generally presented as JSON" instead of IPLD itself?
It seems like IPLD Schemas could be stored and manipulated as IPLD Data Model objects, and serialized into arbitrary codecs (likely DAG-CBOR).
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.