Canonical Encoding
DAG-CBOR's single, deterministic byte form for any value, with sorted keys and shortest integers among its rules.

Canonical encoding: DAG-CBOR's single, deterministic byte form for any value (sorted keys, shortest integers, …). It keeps CIDs stable, and it makes JSON key order and whitespace irrelevant to the result.

See also

    DAG-CBOR: the encoding this form belongs to.

    Encoding: the full rules and the human form.

    CID: the hash of the canonical bytes.

    Blobs: signed blobs are canonical DAG-CBOR.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime