Skip to main content

build_visible_source_pack

Function build_visible_source_pack 

Source
pub fn build_visible_source_pack<W>(
    builder: StreamingPackBuilder<W>,
    source: &impl ObjectSource,
    selected: &State,
    references: &[ReferenceProof],
    redactions: &EntryRedactions,
    max_objects: usize,
    max_decoded_bytes: u64,
) -> Result<(W, PackStats, bool), HeddleError>
where W: Write + Read + Seek + SyncData,
Expand description

Build only source bytes visible under an already-admitted entry projection. Hidden directories are not traversed; their salted commitments prove the original tree root without names or targets. Reference descriptor closures are included only when no selected entry is hidden. The final boolean is true when the selected source and reference closure is complete.