Skip to main content

Module content_id

Module content_id 

Source
Expand description

ContentId — the self-certifying identity of a value.

A ContentId is a newtype over an IPLD Cid (content identifier, v1). It is computed directly from a value’s canonical bytes, so it is a proof of integrity: anyone holding the bytes can recompute the id and confirm the bytes are exactly what the id names. Nothing trusted needs to vouch for the association — it is intrinsic.

Structs§

ContentId
The self-certifying identity of a value.

Constants§

BLAKE3_HASH_CODE
Multihash code for BLAKE3 (0x1e).
DAG_CBOR_CODEC
Multicodec code for the dag-cbor content type (0x71).