Skip to main content

Module car

Module car 

Source
Expand description

Minimal CAR v1 file decoder for extracting CBOR blocks.

The firehose #commit frames include a blocks byte array that is a CAR v1 archive. We decode it to extract the record CBOR blocks, converting each from CBOR (via ciborium) into serde_json::Value.

Structs§

CarDecoded
Decoded blocks from a CAR v1 file, keyed by hex-encoded CID.

Functions§

decode_car
Decode a CAR v1 byte slice into its constituent blocks.