pub fn build_car_v1_sections(
roots: &[Cid],
blocks: &[(Cid, Vec<u8>)],
) -> Vec<Vec<u8>>Expand description
Build a CARv1 byte blob containing the given root CIDs and (cid → bytes) blocks.
Like build_car_v1 but returns each length-framed section as its own
Vec<u8> — the header section first, then one entry per block — so the
caller can stream them incrementally over HTTP without materializing the
entire CAR into a single contiguous buffer.
Each returned Vec<u8> is a complete framed CAR section
(varint(len) ++ body), safe to flush independently.