@ipld/dag-json
Advanced tools
Comparing version 3.0.16 to 3.0.17
{ | ||
"name": "@ipld/dag-json", | ||
"version": "3.0.16", | ||
"version": "3.0.17", | ||
"description": "JSON Directed Acrylic Graph for IPLD", | ||
@@ -47,5 +47,3 @@ "directories": { | ||
}, | ||
"browser": { | ||
"import": "./cjs/index.js" | ||
} | ||
"browser": "./cjs/index.js" | ||
} |
@@ -35,14 +35,3 @@ ## JSON Directed Acrylic Graph for IPLD | ||
The `dag-json` spec is quite simple. | ||
The [`dag-json` spec is in the IPLD specs repo](https://github.com/ipld/specs/blob/master/block-layer/codecs/dag-json.md). | ||
Nodes are in standard JSON format with the following requirements: | ||
* Objects are consistent and deterministic | ||
* Object keys are sorted (TODO: specify sorting algorithm). | ||
* No whitespace outside of values. `{"x":1,"y":[2,3]}` | ||
* Links are encoded as objects with a single `'/'` value of the | ||
base58 encoded CID. | ||
* `{"/": "QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4"}` | ||
That's all :) | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6610
37