Expand description
DAG-JSON - a human-readable debug / export codec.
Never hashed, never canonical. DAG-JSON is useful for
mnem cat-file --json, test-vector inspection, and error messages.
It must never appear on the hash input path - SPEC §3 says canonical
encoding is DAG-CBOR and nothing else.
Functions§
- from_
json_ bytes - Decode a value from DAG-JSON bytes.
- to_
json_ bytes - Encode a value as DAG-JSON for debug / inspection.