Skip to main content

decode_car

Function decode_car 

Source
pub fn decode_car(data: &[u8]) -> Result<CarDecoded>
Expand description

Decode a CAR v1 byte slice into its constituent blocks.

Returns a map of CID (hex-encoded) → decoded JSON value for each block. Blocks that fail CBOR decoding are silently skipped.