Module cid

Source
Expand description

IPFS CIDv1 related utilities

Enums§

CidError
Error enum for CID validation

Functions§

compute_cid_v1
Computes a CIDv1 (RAW + SHA2-256 multihash)
validate_cid
Validates a CID to conform to IPFS CIDv1 (or higher) formatting and allowed multihashes (does not validate decoded CID fields)

Type Aliases§

Multihash
Multihash type for wrapping digests (support up to 64-byte digests)