Skip to main content

Module dagjson

Module dagjson 

Source
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.